Yes! Exactly that's the point. Biology's complicated, of course there are edge cases. That in no way alters the fact that the core concept is that a woman is an XX human.
Re infertility, don't be silly. Yes I didn't word it perfectly, I meant "XX, i.e. the sex that bears children in mammals". Do you know what anisogamy means? This stuff wasn't complicated 20 years ago and funnily enough the science hasn't changed.
Can you post a link to what you’re referring to? I don’t think I was aware that there were fertile XY females in humans.
But in any case, the point is that biology is messy and always has rare exceptions. As an engineer I’m sure you appreciate the value of simple definitions that capture 99% of the diversity accurately.
I found one paper describing one case. Is that what you're referring to? If so I'm guessing you haven't had much exposure to biology -- definitions always have counter examples in biology. The important thing is to have simple definitions that get at the core conceptual structure. "Females are XX humans; males are XY humans" is one such definition, questioned only by a small contingent of non scientific social activists in western countries in the last decade or so.
This definition also excludes:
* humans with one X chromosome (1 per 2000 to 5000 humans born [1])
* humans with three X chromosomes (1 per 1000 women born [2])
* infertile women (6% of married women under 45 in the US [3])
[1]: https://en.wikipedia.org/wiki/Turner_syndrome
[2]: https://en.wikipedia.org/wiki/Trisomy_X
[3]: https://www.cdc.gov/reproductivehealth/infertility/