I believe religion serves that very purpose and historically, perhaps, even more so. Religion does have a propensity to also charter consequences that infringe. For instance, the modern Catholic position on divorce, baptism, marriage (within the religion), abortion, politics (intrusive), and pedophilia. The good probably balances the bad quite nicely, but separation of church and state is also mandatory, imo.
You must understand that your understanding of "religion" and mine are quite different. Jews don't have too many of the far out views that you are used to. Although the Orthodox do tend to look down their nose at the rest of us - but at least they do so silently.
My biggest criticism of religion is that it often drives a wedge between people and that is bad.
Separation of Church and state is very important and protects religion as well as the State. The Protestant Reformation had to do with political corruption in the Church.
At any rate, although I doubt any religion is the word of God, I do believe that in many ways it gets us about as close as we can get. Judaism is a very philosophical religion - so much so that few can understand it. The term "Rabbi" literally means "teacher."
What you are familiar with is probably the result of people trying to interpret the Bible without understanding the context from which it came. Most of what Jesus said and did only makes sense in the context of Jewish philosophy and law. One must be versed in these things to interpret anything in the Bible.
When people attempt to interpret the Bible without this necessary background, they get all kind of crazy ideas and wind up holding up snakes and talking in tongs and what not.
I have read very little in the bible, OT or NT that did not contain a lesson from which we can learn, but I understand the context. I can see how those who do not see what I see.
For instance, when Adam ate the apple. Taken literally, the whole story makes no sense. but figuratively, it speaks volumes. It speaks about the nature of man and the capacity for evil that comes with our ability to think. Only a sentient being is capable of evil correct? A crocodile, mean as it is can not be evil - that is an ability unique to man.
Buy ya, if all you see in that story is a goofy story about "original sin" as a prelude to a guy who would come along and accept punishment on your behalf, I can see how it would make no sense.