It would have helped my kids, one of whom has an autistic spectrum diagnosis and one of whom has autistic traits. Both are high functioning 'little professor' types.
Such children struggle throughout school with fitting in to the peer group, who view them either as superhuman knowledge machines or socially worthless geeks. The particular cohort they happen to join tends to dictate their self-esteem levels no matter how hard you work as a parent to give them self-confidence, resilience and coping strategies (on top of dealing with their various other problems, e.g. sensory issues, executive function deficits etc).
As a result they spend most of their childhood feeling like a square peg in a round hole. Imagine the relief if a trusted teacher or a visiting specialist coming into the school does a class or workshop saying, "If you feel like a square peg in a round hole, you may have been born into the wrong body. You are trans and all you need to do to feel happy and better about yourself is adopt these behaviours and have these medical interventions. If your parents are unconvinced, explain to them that you're X times more likely to become suicidal if they don't agree." And that message is repeated again and again until they, their parents (often) and everyone in the class believes it and goes along with it as if it's a fact.
I'm sure the Scientology church would have liked this kind of access to confused and vulnerable children and teenagers.
So yes, in my opinion these lessons shouldn't happen full stop, and that would help the vast majority of school-age children, their families and society at large.
In the rare instances where a child is experiencing spontaneous gender dysphoria, that should be acknowledged as a pathological state, they should have access to neutral psychotherapeutic intervention that involves their parents instead of actively alienating them, and where necessary their peer group should be talked to about being supportive and kind just as a school would do if a child had any other medical condition that required the support and understanding of their peers. (I presume - I'm not a teacher.)