I had a gender studies course where there was this interesting (and disturbing) piece. What I mean by appearance over functionality is this; if a baby is born with what the doctor considers ambiguous genitals (a chromosomal female with a 'long' clitoris or male with a short penis), they take it on their own shoulders to 'correct' this, more often than not just cutting whatever genitalia shorter, making the baby a girl despite what chromosome pairs they really have.
For males if the penis isn't a certain length, doctors will go 'they can't urinate standing up; surely emotionally damaging', and yeah, I think for many that would be damaging, but being a different gender (forced) because of a decision made when the person couldn't really say anything to stop it. It also doesn't take in to account that perhaps by puberty things may have progressed toward the better. Many of the individuals in my readings that found out about this happening to them had issue with it; they felt insecure sexually (the scarring, etc), while those that didn't undergo the surgical procedure grew up to have perfectly healthy sex lives (and for that case, romantic partnerships).
(on the other hand, my internet isn't cooperating with me so I can't comment further. I was just making a remark based on another comment since gender confusion really is more common than people realize)