Sex and gender are effectively the same thing for this conversation. We consistently refer to female athletes as women and the terms are entirely interchangeable here. Sex is also a socially constructed category based around certain anatomies and characteristics. Gender is assigned the same way sex is. Sex is not the hardline objective reality it’s being treated as here. Women with CAIS are not forbidden from “female sports”. Similarly, women with PCOS who have high T are not banned from “female sports”.
I’m not male. No part of me is male. My legal sex has been changed. If we’re separating people into male and female, I’m placed into the female group.