This is what blurring the lines does.
They can still compete in other races due to ridiculous rules.
This should be very, very easy. If these two - and anyone else - are chromosomally XX, they should be able to compete in women's events. If they're XY, they shouldn't.
Caster Semenya, for example, is XY with elevated testosterone levels. She is therefore male and shouldn't be allowed to compete. However, if she was XX with elevated testosterone levels, she should be allowed to compete.
The whole population has big variances in testosterone. That is genetic variance, the same as if you have longer arms or better twitch reflexes. It's an amazingly bad marker to use to disqualify someone from competing.