I have mixed feelings on this. I grew up in a secular setting as my father had long ago given up on religion and my mother seemed ambivalent about it.
As an adult, I moved to a new city with my wife who is religious, though non-evangelical. She never tried to push me into it but would disappear every Sunday morning. But after a decade or so of feeling like a stranger in my adopted city, I attended a service where I discovered they were in desperate need for musicians. So I wound up volunteering some time and in the process, met a lot of people, and one thing led to another. Today, I do have friends in the city, play in various bands around town, etc.
Yet I still haven't really bought into religion. I guess the value to me is that it gets my introverted ass out of the house and meeting people irl. As a community institution, it brings together people of varying ages and demographics. But it comes with a huge amount of baggage which I could frankly do without?
I just hope that if religion fades away, there will still be something at the community level that gathers together people regularly from all walks of life. There are all sorts of special interest groups, but many of these do not necessarily attract a wide cross-section of society.
Whatever the case, when a church closes as a religious institution, I hope that it can be repurposed to some other activity that is still community-building?
If I'm not mistaken, coal mining itself is a major methane emitter. I wonder if they account for that in this comparison?