I don't agree.
The "nice things" that religion enabled already existed before religion. Any of the "nice things" that got in the way of business for the powerful, well, became unimportant pretty fast. Charitable activities were funded by the wealthy as a political tool before a "moralizing god" existed, let alone became a common belief system.
You cooperated with other people in your society for mutual benefit, primarily. People cooperated long before religion the popularity of a handful of monotheistic, moralizing gods.
Being uncooperative on the level a religion punished [and sometimes, violent] is almost never beneficial except in extreme circumstances.