OK, lemme start out with my belief that "the Bible" is a collection of folk wisdom/tales/experiences, and so on.
Some say it is the "Word-of-God".
I say it is more akin to Zodiac signs...to your horoscope.
Meaning, it is broad enough, long enough, vague enough, that one can read into it any darn thing they want.
Does that mean there is no good stuff in 'the Bible'?
Oh hell, no.
There is.
Some parts of the Bible's collection of old tales and advisories can serve as useful guides for a human society to work. Who cannot agree that societies are more effective when folks don't steal from each other, don't kill each other, don't screw their neighbor's spouse?
But then, there is also some nutsocrazo stuff that most 'Gods' today......don't want tagged onto their 'brand', e.g. stoning to death folks for non-marital sex; smashing your enemy's infants heads against walls. And so on.
And those advisories about stealing the enemy's women are the vestiges of the old-timey times when the various passages of bible were written (Over thousands of years; it wasn't a one week sit-down with a word-processor).
So the Bible is like your Horoscope. Use with caution. Don't believe everything you read.