Here Nan has an excellent post that there is nothing yours truly can add to. But borrowing from her line of thought, how do the people who take the bible as god inspired deal with the injustice in it?
Take for example Isaac’s blessing to Jacob. He says
May peoples serve you and nations bow to you be your brothers’ superior, and may your mother’s sons bow to you may those who curse you be cursed and those who bless you be blessed.
And shortly afterwards, from want of extra blessings to pass around, he tells Esau
Here, away from the fat of the earth will be your home, and from the dew of the skies from above and you will live by your sword. And you will serve your brother and it will be that when you get dominion you’ll break his yoke from your neck.
Some people argue that this was the way the authors of the bible explained conflict between nations or beginning of strife that still plague the world.
To imagine that these fellows were living at a time when YHWH would drop by for visits and they did not seek his advice! Shortly we have Esau planning on dispatching his brother to the netherworld following a botched blessing ceremony. Maybe this is why lawyers insist on everyone being present during the reading of wills and final testaments.
He was right who said a god who drowned his children cannot teach me how to raise mine.