That is correct, of course.
OTOH, this Pelosi-style of thinking punishes the teacher for treating a girl as a girl.
Where does such logic end?
This is what happens when you release the mentally ill patients from the asylum and they become politicians and school administrators.