@rcz and let's do one more thing and remove the specific person from this, as we there are going to be a lot of uncomfortable hypotheticals in this thread, I'm sure.
So let' say there is a person called Amal. She has been assigned female at birth, and since then has participated in sports all her life, with considerable success.
When she's twentysomething, suddenly there's a test showing the result you mention.
What gender is she, in your opinion?