what I am saying is your trying to oversimplify things... Human society is made up of many constructs... One of those is religion. Because of that, things get a little messy. Because religion does not only affect the rest of society, but the rest of society also effects religion.
I would put forward the opinion that you are over complicating things. We can talk in specifics, I'll research and you research and we will fill this post with a great profusion of details of inspirations and deeds and investment and oppression... I am more than confident my assertion will stand.
Religion is not part of society, any more than a road is part of a car. Religion, like technology and accumulated knowledge,
influence society, (And society affects religion, but only within the parameters allowed by the suspiciously maleable belief structure) and may direct it hither and yon, but as I said, religion (And for the sake of argument technology) could disappear tomorrow, and society would remain. Granted, removing technology all the way back to fire and sharpened flint would mean that our current society would, in short order, cease, but that is because it is technology that has allowed society to flourish.
Religion disappearing might make some people sad for a month or two. There might be some unnecessary suicides. Within a generation I believe it would be no more than an embarrassment in our collective rear-view mirror as we accelerate into an unimaginable future.
We humans fear and yearn for the unknown. It is a genetic imperative, as our DNA is full to the brim with the instructions to make our body work, there's no room left for what we think of as animal instinct. That's why we have brains, and from the moment our eyes focus, we want to fill that brain. God or no God,
the human shall always seek.
When these great people discover great things, be they religious or no, it is usually a concept outside of the currently accepted religious worldview. Sometimes they are persecuted by those belief structures, sometimes they are not, depending on where they are in the world and how religion is currently influencing their society.
Therefore, I return to my OP, unchanged, unchallenged, goalposts intact, and await your rejoinder.