It’s funny, because the smarter someone is when they invent a deity, the fewer human flaws that deity suffers from…which means ‘god’ wasn’t just invented by humans - but by absolutely stupid humans.
Ironically, it’s more the equivalent of “tech debt”. The older the deity is, the more the worship of that deity has changed over time, and so the more convoluted it gets … because the religion is very different from itself over time.
E.g., the 8th century Yahweh wasn’t a monotheistic god, he was just the specific god of a particular tribe. They didn’t think of him as all knowing or all powerful, they just wanted a cool story to show how their tribal god was so tough he beat up the gods of the local superpower, sort of a “my dad can beat up your dad” thing. The concept of monotheism didn’t show up in Jewish religion for another 300 or so years
Don’t forget the part of the story where YHWH literally mind controls the pharoah into not letting people go explicitly to have an excuse to do this. “hardened his heart, and the heart of his servants, that I might shew these my signs before him”