Religion can operate as a compassionate “conscience” of society.
Religious people, like all people, can show compassion, but how many times has that compassion been necessary to counteract the xenophobia, misogyny, and barbarity also present within their own religion and ranks? It’s difficult to see what the religion itself really provides that falls outside of ordinary human behaviour.
Being part of an organization, perhaps, can lead to more structured charitable giving and acts. And this can include being part of a religious congregation. But then, the quality of that charity is also something to be taken into account.