Religion is a manipulation tool. This is a way of getting people to act in the way that benefits those who interpret religious tenets.
Previously, when life was not a very valuable thing, religion kept people within the framework of fear. And the promise of eternal bliss.
The science and atheism religions are among the worst religions that we have. Why? Because in some ways they play on the logic that everyone uses. Then somebody turns the parts that are not logical (often science theory) into religious beliefs, like believing they (the theories) are true and real, when nobody knows that they are true and real.
Both of these statements are clearly and unfortunately all to often true. How do we resolve this juxtaposition?
I would once again draw attention to the thoughts of Kurt Gödel. Gödel left in his papers a fourteen-point outline of his beliefs.
1. The world is rational.
2. Human reason can, in principle, be developed more highly (through certain techniques).
3. There are systematic methods for the solution of all problems (also art, etc.).
4. There are other worlds and rational beings of a different and higher kind.
5. The world in which we live is not the only one in which we shall live or have lived.
6. There is incomparably more knowable a priori than is currently known.
7. The development of human thought since the Renaissance is thoroughly intelligible (durchaus einsichtige).
8. Reason in mankind will be developed in every direction.
9. Formal rights comprise a real science.
10. Materialism is false.
11. The higher beings are connected to the others by analogy, not by composition.
12. Concepts have an objective existence.
13.
There is a scientific (exact) philosophy and theology, which deals with concepts of the highest abstractness; and this is also most highly fruitful for science.14.
Religions are, for the most part, bad but religion is not.Gödel felt the answer was applied reason. I agree with him. The following was some of his mathematical reasoning

What does all this math signify? The article below explains.
Scientists use mathematical calculations to PROVE the existence of Godhttps://www.express.co.uk/news/science/756870/proof-of-god-kurt-godel