DSDs are complex and can, for example in 5-Alpha-Reductase deficiency which I believe Semenya has said she has, be linked to ambiguous external genitalia at birth ( with internal testes) but dramatic virilisation at puberty.
People affected develop a deep voice at puberty, grow facial and body hair, the internal testes can drop and the genitalia can change from a micropenis/enlarged clitoris to a phallus making the appearance more closely fit the genotype. Studies report that individuals affected can often change their gender identity if they have been previously raised as female. They undergo all the changes of strength, size associated with a male puberty.
I do not know the details of Khelif and Yu-Ting’s medical history. However, in general, it does not seem appropriate to stick to a sex identified (wrongly) by observation at birth- when in rare cases puberty can change things significantly. Men’s punching capacity is something like double that of women, so it is a risk to women in a combat sport, although I recognise that this is hugely difficult and distressing for the individuals affected.
https://www.ncbi.nlm.nih.gov/books/NBK539904/