Most of the old testament was written while the Jews we're in exile in Babylon then after during the Persian period, that's my belief. Babylon is farther away from Egypt the Jerusalem and during their excile Egypt had very little influence in the Levant. Most of the stories in Genesis come from the Mesopotamian part of the world not Egyptian. Even the story of Moses starts out as he being put in to a basket and floated down the river this is the same as the story of Sargon of Akkad. The laws are probably taken from most likely Hammurabi laws. Some of the proverbs came from Nineveh.
But the influence of Egypt is unmistakable, Solomon is an Egyptian name and his temple was similar in construction to several in Egypt. Baptism, cercumsision, the Ark of the covenant, the staff and cepter all influenced or copied from Egypt. The idea of monotheism also came from a Pharaoh named Akkenaten. One can tell that Egypt and Babylon influenced early Judaism, but there no mistaking that their early Gods and human sacrifice came from their ancestors the Canaanites.