In this day and age, it's the uterus that's the key organ in gestating a fetus and giving birth, not the ovaries. With assisted reproductive technologies, many women who can't produce viable eggs from their own ovaries are nonetheless able to give birth with eggs from another woman's ovaries so long as they have a uterus.
Without a uterus, a woman with normally functioning ovaries pumping out tons of viable/fertile eggs still would not be able to "carry a child" and "give birth."
The issue of whether Semenya, who is said to have 5-ARD - a condition that occurs in both sexes but is a DSD in males only - is murkier.
But you are making a very big and perhaps erroneous assumption when you say Semenya's testes are internal, meaning inside the abdomen. My understanding of 5-ARD in males is that in most cases, the testes at birth are merely undescended - meaning they are located in the external groin skin but not inside the scrotal sacs/scrotum where they normally are placed, a condition known as cryptorchidism.
In fact, experts on 5-ARD say that "in most instances, the testes are located in the inguinal region" - meaning the groin, an outer part of the body, rather than inside the abdominal cavity.
(BTW, cryptorchidism is said to affect 1-2% of male newborns, most of whom do not have DSDS like Semenya.)
The scientific papers I've read and the DSD advocates and experts I've spoken to are mixed about whether males with 5-ARD can provide viable sperm. Many say they can, but they also say that 5-ARD males produce seminal fluid of low viscosity and volume - and sperm of low motility and/or number.
In any event, it seems that from the cases that have been documented, males with 5-ARD who have successfully impregnated women have usually employed assisted reproductive methods such as IUI/ICI or IVF. Then again, this perception might come from the fact that 5-ARD males who need medical assistance with insemination are the only ones showing up in fertility clinics and being documented in studies.
Interestingly, the MtF trans runner Joanna Harper - a source the bigwigs at LRC and site users long have regarded as credible - as well as the longstanding MtF website Susan's Place say that males with 5-ARD can usually produce viable sperm and father children if they use assisted reproductive methods and tech.
http://www.childrenshospital.org/conditions-and-treatments/conditions/u/undescended-testes-cryptorchidismhttps://www.ncbi.nlm.nih.gov/pmc/articles/PMC4031759/google.com/books?id=qyGzDwAAQBAJ&pg=PA18&lpg=PA18&dq=5-ard+males+sperm&source=bl&ots=CqWWju2ikp&sig=ACfU3U3xcs92JW6CvCPEXPk-91JoJzc2QA&hl=en&sa=X&ved=2ahUKEwj73MDy5r7qAhWLgnIEHfyLDxsQ6AEwE3oECAoQAQ#v=onepage&q=5-ard%20males%20sperm&f=false