On top of that, we don’t actually know whether or not Khelif was AFAB. For all we know, she has plumbing down there which appears to be biologically female. That is entirely possible even if she has XY chromosomes.
So I guess the idea here is that it doesn’t matter what you have between your legs, all that matters is what’s analyzed on the cheek swab. I wonder what age athletes are expected to get tested for this? The youngest Olympian this year is competing in women’s skateboarding for China and she’s 12.