I really wish people would stop trying to drag people with DSDs (intersex generally rated an outdated term) into the trans debate. For the sake of any colleagues who are unsure what sex they are, please read the following:
When a baby is born, in the UK, they all have a "babycheck" performed. This is effectively an MOT. As part of this, the sex is observed. Not assigned, observed, and recorded. The vast majority of clinically significant DSDs would give rise to visible differences at this age. Such as megacliteris, fused labia majora, micropenis, bilateral undescended testes. Usually it is pretty apparent which sex the baby is despite one or more of these, but even so certain precautions are taken. The baby is urgently discussed with paediatric endocrinology, and usually reviewed by a consultant in paediatric endocrinology within 48 hours. As part of this review, in addition to history and a thorough examination, USS of the gonads is undertaken, as are blood tests for chromosomes (and also sometimes other bloods, such as 17 OH progesterone if congenital adrenal hyperplasia with female virilisation is suspected). Very very quickly the parents are informed about the sex of the baby.
The overwhelming majority of the time that sex will match the one first thought likely. Occasionally not. Incredibly rarely the phenotype (physical manifestations) may be sufficiently different from the genotype (chromosomes) that there is a discussion as whether to raise the child phenotypically or genotypically, based on what can be best achieved for a normalish life. This is a fraught area, and there's loads of evidence that decisions made to quickly by arrogant doctors can go very wrong.
Very occasionally, someone who had no differences in their genital appearance at birth it becomes apparent that something is different in puberty. This might be a phenotypical girl not having periods, for instance. And this is investigated thoroughly, and for example may find that a girl has XO genotype (Turner's, definitely female, look no Y chromosome) and streak ovaries. In over a quarter of a century of paediatrics I can literally remember only one phenotypic girl who outside infancy was discovered to have male gonads, and XY genotype. This was not a gotcha, this was an utter tragedy.
Only two forms of human gametes exist. Eggs, and sperm. No one in the history of humanity has had any other gamete. Reproduction is sexual, binary, and not on a spectrum.
Oh. and if you have ever had an actual period, you're definitely female.
Yours, a naffed off paediatrician who is speechless at captured colleagues pretending they don't know what sex is. Knowing the sex of a patient is an absolutely essential part of treating them safely.