What to do with intersex athletes has been a hot debate for 20 years (actually since the inception of women's sports), particularly where they were "incorrectly" raised female. But of course this debate was thrown into the blender of culture war fights not just in the US but also several other Western countries, where it doesn't belong.
One of the experts in the field of sports and gender is a legal professor at Duke. Some of my good friends knew her pretty well (I didn't have her, but most of them did). She largely takes the position you take, and she wrote extensively on the recent controversy.
As far as I'm concerned, Khelif is a hero of the Games. Last I checked, the US ranked first in the IOC's unofficial medal count after "winning" the tiebreaker (most silvers) of two countries who equal one another in gold medals. Of course, Khelif defeated a steroid-addled Chinese female boxer in the final. If she loses ... we "lose" to China (which is a huge deal for their internal PR and not bad for their external claims of a "rising" country).
My basic position on this is that if a person was actually raised female (as Khelif certainly was), it's awfully complicated to tell them at age 25 that their entire life was a fraud (in large part because it wasn't). Which is why the responsible organizations have imposed a required of testosterone suppressants on such athletes, as discussed in my article. The IBA and the IOC are both not particularly responsible in addressing this situation.
The historical, political, and medical context of the Imane Khelif and Lin Yu-ting cases.
quillette.com