I disagree. Discovering God was essential part of our evolution, at some point that was the best way to spread certain values among humanity, values that are essential to our progress as a society. Now we have evolved enough and we don't need God anymore. But those "good" values must stay and keep spreading among people.
Many of the values that are the central components of major religions were around for much longer than said religions, so saying that they were the best way to spread said values is a stretch. These values are inherent and intuitive for any society or community. Even those that weren't touched by religion, such as those living on secluded Pacific islands, developed societal norms and values that differ very little from any other society. Deities and other superstitions were an attempt by early man to answer the basic questions of why we are here and how we came to be, not some sort of grand social engineering experiment.
If anything, religion was and still is the greatest impediment for true advancement of human society as it is one of the most divisive aspects of human life.