Religion - the moral dimension, anyway - is not so much the opiate of the masses as game theory for the masses. God is the Great Coordinator in a massively multiplayer iterated prisoners' dilemma. Some people can accept the Golden Rule as it comes from Kant without worrying about whether it comes from a higher power. Others, not so much.