Social reality is not the same thing as biological reality. You can only 100% confirm someone's biological sex with a blood test.
Socially speaking, if it looks like a duck and quacks like a duck, it's a duck.
Possibly not the best term to use considering the subject.