Those gonads are often not fully functional.
What is clear is that not one person on earth has produced both ova and sperm. Rather some people might have 'streak' gonads or underdeveloped gonad tissue of one type of gonad vs a more developed gonad of the other type.
The degree of development is what is considered.
And if one of these people with ovotestes wishes to compete in the female category of sport, then should need to be established as to whether they have had any degree of virilisation due to their body using testosterone.
It really is not as complicated as so many people try to make it by attempting to bring in specific DSDs as some kind of 'gotcha'.
First, does a body have XY chromosomes, yes? Then assess if the body has functioning testes, if yes? then test whether the body is capable of utilising any of that testosterone. If no to functioning testes - they are included in female sports at the moment. If no to capability to process that testosterone - they too are included at the moment.
Discussing what DSD someone may have is irrelevant. Has their body virilised to any degree? That is the relevant bit at this time.