they are still male. that is why they have x and y even if y doesn't work. it does not change anything.
Hm, wouldn't it mean that, following your logic a man who has sex with a CAIS person automatically becomes gay or at least bisexual? That would be funny!