There are XY females, and they're not extremely rare, as far as mutations go (only two genes in the Y chromosome need to be mutated for that to occur). Sex is generally determined by phenotype, rather than karyotype. /Random factoid time.