Religion isn't magical, it only serves to protect and preserve the existing culture, while at the same time acting as a cohesive. As with any tool, using it wrong will end up fucking you in the ass, there are plenty of beneficial religious off-shoots but there are also plenty of cults and cancerous groups.
Atheists love to paint ALL religion as evil by cherrypicking certain groups that they don't like. For example:
>Christianity is racist, which is why we must abandon it in order to progress to a hate-free society
>Christianity is sexist, which is why we must abandon it in order to progress to a gender-equal society
>Christianity is egalitarian, which is why we must abandon it in order to progress away from liberalism
>Christianity is Communist, which is why we must abandon it in order to progress away from Marxism
>Christianity is Capitalist, which is why we must abandon it in order to progress towards the society of the proletariat
>Christianity is homophobic, which is why we must abandon it in order to progress to a society that loves and lets love
>Christianity is transphobic, which is why we must abandon it in order to progress to a society without arbitrary gender roles
>Christianity is Islamophobic, which is why we must abandon in order to progress to a society of all cultures and norms
>Christianity is anti-Semitic, which is why we must abandon it in order to progress to the 21st century
>Christianity is Jewish, which is why we must abandon it in order to progress to a free society
>Christianity denies the Big Bang Theory, which is because of how ignorant they are
>Christianity invented the Big Bang Theory, which is because of how ignorant they are (there are people in favour of the Electric Universe Theory that have actually said this)
You simply have to do some research to see which branches of certain religions align with the types of views you wish to see inherited by future generations, while actively going against ones that go against your views. Obviously there aren't likely to be ones that match 100% perfectly, so you just have to research to see the ones that you would deem beneficial. Atheism isn't inherently bad but you cannot build a society off of it, at least not a very stable one, as atheism has little to no ability to unify a society, it merely "liberates" individuals from personal responsibility.