Which team ? The one whose genitalia matches theirs. Uncomfortable ? Don’t go out for the team: it’s nowhere CLOSE to mandatory. ..
A fair solution to this is: you get to decide what gender you are at 18, and we’ll recognize it after surgery to match the gender.
If a child cannot get a tan without parental permission until 18 and no tattoos because it is life altering, you don’t get to alter your gender or identity or biology until 18. Then, as an adult, we can’t keep you from screwing up, but when you alter the anatomy to fit the mind, you can be that gender. But a man in a dress is still a man, and a woman in a suit is still a woman.
Then we avoid the “my five year old son wants to be my daughter” and boys capable of impregnating girls sharing quarters with them.