Simple; have the student take a DNA test. The result of the test will establish his “gender” (sex).
Far too logical and factual. Facts can be discriminatory now days...cognitive dissonance is our new national disease. That is why Islam makes the perfect religion for a people suffering this type of malady.