It could have been a good idea, the invention of gods. It could have been a way of solidifying thoughts about how humans could be better than they are. It’s an impressive and touching thing about us that we realize we’re not good enough. Gods (or God) could have been a helpful or even inspiring way to conceptualize The Better.
But there’s a flaw at the heart of the idea: humans are the ones conceptualizing the gods, so their ideas of what is better are the products of flawed humans, not those of a perfect being. We can’t lift ourselves up by yanking on our own feet.