Not only that, but Judaism had only been mostly Monotheistic for a little over 5 centuries in the time of Christ. In other words, the core of the Old Testament is written from the perspective not of Rabbinic Judaism of Yahwism, where Yahweh is the regional God and there are others around, almost 1000 years before it became mostly monotheistic Judaism in the 6th century BC, when the Torah was sort of retconned into its current form.
So not just the violence but the jealously makes a lot more sense when Israelites are considering throwing some burnt ends towards Baal.
Also, Yahweh had a girlfriend, a creation deity named Ashereh, who was previously the wife or baby mama to the supreme god of the Canaanites, El, when Yahweh first emerges out of the desert as a storm god from the Peninsula before ultimately merging with El, like an Arabian Mr Ripley.
And then Jesus shows up a a few hundred years later and says essentially- “stop arguing about the law, lawyers. The law is love. Love God, love your neighbor. That’s literally the whole thing.”
And now 2000 years after that, fundamentalists are still confidently citing Leviticus when they explain how Jesus didn’t really mean what he said.