I would take it from a slightly different perspective.
I think the question itself is similar to asking “What if the sky smelled yellow?”
Let me explain. A part of the development of humans and early primates made it critical that we adopt a kind of dualistic reality simulator in our brain. This made the process of projecting and predicting behavior of others much easier for us. Evolution being the efficient machine it is did not bother to codify that in such a way that it discriminated between hominids and anything else though so we found we anthropomorphized everything we ran across. You see evidence in the early animistic cultures where some spiritual attribute is assigned to every rock, tree, nook and cranny! As our understanding was limited, this model worked, after all, avoiding the dangerous precipice because the meteorological conditions made the face of the rock conducive to slippery fungi and easy to slip from is just as effective as avoiding it because the local spirits liked throwing people off. The pre-agricultural revolution humans were hunter/gatherers and just didn’t have time to analyze the details. It was good enough to know that you tend to fall from such places and dead is dead, be it naturalistic or spiritual causes!
As such, I would say that religion is an emergent property of a wildly important part of our development. The ability to look outside of our immediate self is what gave rise to language, socialization, culture and the Iphone (which may call it into question once again…). Our culture, our technology, the sciences and everything that we now see as progress is informed by the very same drives that made us religious in the first place. We needed religion to bring us to the place that we could question it at all!