In practise, both are probably true.
I fundamentally dislike religion and the tribal, irrational cult like mind control they seem to all exhibit. But I have seen it in a different light after reading "Sapiens" by Yuval Harari. So I now acknowledge that it has probably played a useful role in human society, despite its large negative traits.