The treatment you’re talking about is conversion therapy - largely considered torture by modern standards. And what happened to the people who received that “treatment?” Statistically they probably fucking killed themselves. Which, like, I guess does solve the issue of you being uncomfortable around trans people and having to see us in public.
I’m not sure if you’re a ghoul or woefully uninformed. I’d suggest reading the medical literature on trans people. Nearly every psychiatric and pediatric organization of note agrees that supporting their transition leads to better healthcare outcomes for trans people by a pretty large margin. This isn’t some kind of social contagion or whatever the fuck you’re talking about. This is evidenced medical practice.
You listed a bunch of capitalist nations as examples of nations cured of capitalism.