Outing someone as gay or trans to their parents is one of the most vile things that you can do, and it's reprehensible that so many on Atlas want to force schools and teachers to do this.
You cannot compare the two as one doesn't lead to medical treatment.
1) It often does, but does not necessarily lead to medical treatment.
2) You want to ban medical treatment for minors regardless, so what does it matter if they're allowed to remain in the closet? They can't get the treatment anyway.
3) Regardless of what you and Alben want to believe, it is the overwhelming consensus of the medical community that gender-affirming care is beneficial for the mental and psychological well-being of trans people.
This "overwhelming consensus" only exists, not because there is an overwhelming amount evidence, but because there is an overwhelming amount of groupthink in the medical community. Physicians who stray from the consensus are ridiculed and even lose their jobs. People also don't like to be told there's something wrong with them, so there's a big (albeit unethical) monetary incentive for psychiatrists who practice gender affirming care.