Also, the physical differences which matter to some sports (again, why is this in a passport, my passport doesn't say if I'm qualified to drive race cars or if I am allowed to possess* a rifle for shooting competitions) relate not simply to what's between your legs, but to the hormones which are merely correlated with that. The effect of such hormones is also why some trans people ask for puberty blockers, and in any case there's a significant black market for oestrogen and testosterone boosters.
And if you do care specifically about what's between people's legs, because you want to know how many urinals to install or something, then it should be fine to change the document (but again, why a passport?) as soon as genital surgery has been completed even in the absence of any impact of hormonal changes.
Most extreme contradiction of the "protect women's sports" talking point I've seen? As muscled-up as Dwayne Johnson or Schwarzenegger, bald, beard, no dick, identified female at birth.
* Outside the USA, we don't have or want the 2nd A, so yes a gun would need a licence.
1) If that was true, it still wouldn't be nessesary to record gender as it would cause the presence of disguise to be more obvious.
2) if you want to disguise person A as person B, you pick A that looks like B, it isn't random: Elijah Wood and Daniel Radcliffe famously look alike, neither is going to appear in a biopic of The Rock in the role of Dwayne Johnson.
3) You have no idea how many false negatives or false positives you're making if you don't ask for their background.
Everyone trans person who passes, necessarily doesn't "look trans": Won't say where to avoid outing her, but I suggested a trans woman I knew apply to a team I was in, after she got it the boss (1) took me aside to tell me that she was trans, (2) was shocked when I said I already knew. She had not had surgery by that point, and the company only noticed the transition because she'd also applied to the company before starting the transition.
And conversely some cis people do "look trans", e.g. The French president's wife based on some recent conspiracy theory that makes no sense to me because I can't imagine caring if someone else's spouse has or doesn't have a medical history relating to their genitals.