It really seems the ancient Jews were fine with their god being a dick on occasion.
Instead of preventing their enslavement he will decide to help them by parting a sea to help them escape?
Could it be possible that something natural happened instead? Nothing to do with a god but they had no explanation so they assumed god like theistic fashion?
Or the whole thing was made up. Because nothing in Egyptian history records having Jews as slaves. No where and they loved to keep records of everything.