I feel like this is more suited to /r/AskSocialScience
Why you won’t get good answers this question.
Reason 1: Religion is not a monolith, it’s a term used to describe a varied set of beliefs and behaviours of people, with a certain set of common factors that are disputed (i.e., does a set of beliefs need to include belief in the supernatural to be called ‘religious’? what is required to be a ‘religion’?). The diversity of what is included in such a term means that attempts to generalise “religion’s” effect on “history” are too vague to be useful or accurate.
Reason 2: Any question about ‘benefit’ is already prejudicial, because in order to answer it you need to assess religion against a pre-existing philosophical (or religious) view of what is good. This is partly why historians shy away from moral judgments; it is not possible to give moral judgments without a frame of reference, and that reference is not itself the discipline of history. So any answer you get is, by virtue of the question, a subjective answer based on their ethical viewpoint of the responder.