I was a young person like that, though I didn't tell my youth pastor I was gay. Somebody else I had told turned around and told him.
Then the youth pastor and the senior pastor quite kindly offered to send me to a camp that could help "fix" me.
Unbeknownst to him, I had already privately renounced faith, regarding faith as a hopelessly invalid mechanism for evaluating truth statements. I had also already realized I was an atheist.
So, I wasn't tempted to go to that camp. And I was already mature enough, strong enough, to resist what became a non-trivial amount of pressure to comply.
I wasn't yet strong enough, however, to cope with rejection and stigmatization. I attempted suicide just a year or so later, figuring the world I lived in was so thoroughly Christian that no accepting place would ever exist for me.
Not until I moved thousands of miles away did I realize that many places, conservative Christians do not dominate society and do not terrorize youth.