Out of curiosity, how do you define sex?
We do not routinely get karyotypes on every baby. Babies are generally declared male or female based on the appearance of their genitals at birth.
However, there's a fair number of 46,XY women walking around in the world (prevalence 6.4 per 100,000). A...