All laws that imply anthropomorphism in God are supposed to be interpreted metaphorically as to point to man and not to God. Only the historical part of the OT can be taken literally. All the poetic and prophetic books are by definition metaphorical.
Right, all so called Divine commands to kill in wars either of agression or defense are to be taken metaphorically. God would not create and destroy His creation. It was common and natural for groups of peoples at that period of History to look for a place to settle down and they would kill all in order to prevent insurrection later on. Of course, being religious, they would attribute their conquests to their own gods. The Hebrews were only one of those peoples. It was called the time of migration of nomads in search of a place to quit their lives of wandering aimlessly.
God is not jealous nor vengeful. That's human transference of their own feelings to acquire Divine legality to their actions.
About the Egyptian plagues, research has been on the making to explain them as natural events. To anything that needs faith to be believed, time is the only thing we have to count with for verification.
So by your reasoning.......
Joshua did not cross the Jordan with God's intervention....he used sappers to divert the course upstream?
God didnt bring down the walls of Jericho......Joshua's sappers (engineers) undermined the walls with tunnelling?
Moses did not literally speak to God via the burning bush......
The Israelites were not really given the Holy Land by God literally, but it was a way of using a patron deity to legitimise a land-grab.