>This is one of the rare problems where there exists no good solution to the issue.
similar problem in boat races - different boats have different characteristics, thus PHRF rating. Not perfect, yet it works.
The same thing i expect to happen with human sports too - analyze DNA, assign handicap score, and let everybody run. Of course that wouldn't work for say boxing or judo - though even here with time we can come up with exoskeletons (or some drugs) equalizing your DNA-based advantages/disadvantages.
Or we can just have competitions in 3 categories - "only those assigned male at birth", "only those assigned female at birth", "anybody can choose to compete in that category". The 3rd category may just naturally become most competitive and interesting without any "males in female sports" issues we currently have.