Religions as tools for social cohesion are indeed valid reasons for having them, since people are by nature social beings. However, using any religion that has demonstratively false dogmas as that tool is by nature unethical because you are encouraging people to lie to others about reality. It is even worse when you have a government take that religion and use force to make everyone follow it. All this does is make many people into hypocrites who act a certain way in public while privately doubting or denying the religion. This results in greater corruption. It is no coincidence that the ones who often come across as the most moral and are also deeply religious also turn out to be the most hypocritical. I think the reason for this is because their moral values are simply not based on anything real and things that are not based on reality are themselves not real. If you need to believe in the Bible, the Quran, or some other scripture to believe in God, to be moral or function in a social order, then you are actually a dangerous person because you will resort to all sorts of dishonest arguments, claims and assertions to keep your faith. Likewise, getting a government to enforce your religion on everyone merely makes the government dishonest. We shouldn’t tolerate this any more than we should tolerate mob bosses taking over a government.
Thus, Islamic states like those of Saudi Arabia and Iran are contemptible and should be condemned and opposed at every turn, and the concept of Sharia (Islamic law) should be completely thrown out in all societies. They are simply phony by nature!