Yes, there is such a thing as an XY female. The SRY gene on the Y chromosome is supposed to kickstart the process of developing male genitalia, internal and external. If it, or other associated genes, don’t work properly then female genitalia develop instead. They’re not always fully functional though.
In Swyer syndrome, the person has XY chromosomes but develops female genitalia, including a uterus. However, the ovaries don’t develop. They have no male advantage in sport.
https://www.cancer.gov/publications/dictionaries/cancer-terms/def/swyer-syndrome
This wouldn’t be Khelif’s condition though. The reason he was first suspected of being male was because of how powerful he is, injuring women he was fighting and training with.
Speaking to Radio Marca, Rafa Lozano, former Olympic boxer and the Technical Commissioner of the Spanish boxing team, stated that at a training camp in Spain, Khelif caused injuries to every woman he fought.
“They were doing a retreat at Blume and we couldn’t put [Khelif] with anyone. We put [Khelif] with Jennifer Fernandez and it hurt her. Whoever we put [Khelif] with was injured.”
The situation became so dire that the team found it necessary to place Khelif with a male boxer during sparring matches in order to “make it even.”
https://reduxx.info/khelif-is-a-man-female-boxer-who-fought-imane-khelif-speaks-out-claims-algerian-boxing-team-told-her-khelif-had-been-biologically-altered-by-living-in-the-mountains/