I hate myself for not being able to get pregnant

I don’t like to be a Debbie downer but I have a hard time staying positive after ttc for 10 years. I’ve never once been pregnant before. I had bad health problems when I was baby and a child. I had a bowel obstruction when I was 5.5 months old where they had to remove 3.5 inches of my bowel for gangrene because my doctor kept telling my mom nothing was wrong with me even though all I did was cry. I barely slept or ate. When I was 9 years old I had another bowel obstruction caused by scar tissue and had to have another surgery. Every time I talk to doctor or gynecologist they say maybe I have scar tissue on my uterus causing me to not concieve. I’m to the point that I don’t even know why the doctors saved my life if I wil never be able to be a mother. I hate myself and feel inadequate. I’m done trying. I give up! Even if the surgery didn’t cause me to not be able to get pregnant, I had issues when I was a teenager and began self medicating I binge drank and smoked weed and cigarettes. I never did any hardcore drugs but I feel me doing this fucked up my body. Does anybody feel inadequate due to trouble conceiving? Do you feel like you have no sense of purpose in life? How do you cope with these feelings?