The single biggest genetic difference among humans is the presence of a Y chromosome.
This single casual factor, not "testosterone levels" nor "height" nor "bone density" nor "muscle mass", is the best factor to split on.
Accordingly, the women's division at the Olympics should be based on this factor.
(There are potentially still edge cases, but neither trans people nor even the "46X,Y DSD" individuals mentioned above are the edge cases.)