Welcome, Stabilizer!
So I tried. I tried to convince myself that religion has a very important social function and saves people from anomie and depression. I tried to convince myself that one could be religious and yet not believe in god. I tried to go through all the motions of my religion. Result? Massive burnout. My brain was going to explode in a mass of self-contradiction.
Interesting that you say this...I haven't had the same experience at all. I was raised basically agnostic/atheist, by parents who weren't so much disapproving of religion as indifferent. I started going to church basically because I made friends with a girl who I had incredibly fun times hanging out with and who was also a passionate born-again Christian. I knew that most of the concepts expressed in her evangelical Christian sect were fallacious, but I met a lot of people whose belief had allowed them to overcome difficult situations and live much happier lives. Even if true belief wasn't an option for me, I could see the positive effect that my friend's church had, in general, in the community it served. And I was a happier, more positive, and more generous person while I attended the group. There was a price to pay: either I would profess my belief to the others and feel like I was lying to a part of myself, or I wouldn't, and feel like ever-so-slightly an outsider. But maybe because of my particular brain architecture, the pain of cognitive dissonance was far outweighed by the pleasure of having a ready-made community of kind, generous (if not scientific-minded) people eager to show me how welcoming and generous they could be. I have yet to find something that is as good for my mental health and emotional stability as attending church.
That being said, a year of not attending church and reading LessWrong regularly has honed my thinking to the point that I don't think I could sit back and enjoy those church services anymore. So that avenue is closed to me now, too.
But maybe because of my particular brain architecture, the pain of cognitive dissonance was far outweighed by the pleasure of having a ready-made community.
I used to have that kind of brain architecture for quite some time, and I kind of miss it. But as I started studying more and more physics, it just became harder and harder. So, I guess the trade-off got really skewed at some point of time.
I have to mention that my religiosity kind of went through cycles. There was a time when I was an internally-militant (not very outspoken) atheist, followed by a ...