Probably not a coincidence that most Golden Age superheroes were created around the beginning of WWII:
-
Superman 1938
-
Batman 1939
-
Captain Marvel/Shazam 1939
-
The Human Torch 1939
-
Namor the Sub-Mariner 1939
-
The Flash 1939
-
Captain America 1940
-
Green Lantern 1940
-
Wonder Woman 1941
You’ve basically just described “confession”. You go into a little box designed to make it as difficult as possible for the priest to identify you, you talk about all the ways you feel like you’re a bad person, and the priest talks to you for a while about it, then gives you some actionable items to make amends and once you’ve done them God officially forgives you. The whole concept of confession is designed to allow people to let go of their regrets and live in the now. It’s actually quite clever as a bit of societal design. If modern priests had psychotherapy degrees then everyone in the world would have access to free therapy - unfortunately they wouldn’t be very useful for LGBT+ people.