How to explain or fit them to our modern world views? Have we gotten better than God?
Slavery is one of the best examples. But not the only one. There is also genocide. If Jesus is the same "yesterday, today, and tomorrow," as co-creator with the father, there should be consistency in Moral Law that does not exist. We today find slavery and genocide wrong. We appear to have outgrown the conscience of the divine.
I have read many Christian Apologetics trying to explain through tortuous mental contortions why blatant contradictions and criminal abuse by the God of Israel are not what they seem. They all work...if you do not have a brain or discernment. Faith is not being naive or stupid. Yet there is a way of listening to Truth that does not require facts but simply spirit. What is that particular verse saying, distinct from all other similar verses?
I offer that out as I offer these conundrums:
Thou shalt not kill. —Exodus 20:13
Thus sayeth the Lord God of Israel, Put every man his sword by his side. and slay every man his brother…companion…neighbor. —Exodus 32:27
2. The first angel sounded, and there followed hail and fire mingled with blood, and they were cast upon the earth: and the third part of trees was burnt up, and all green grass was burnt up. —Revelation 8:7
And it was commanded them that they should not hurt the grass of the earth, neither any green thing, neither any tree; but only those men which have not the seal of God in their foreheads. —Revelation 9:4
3. Lying lips are an abomination to the Lord. —Proverbs 12:22
The Lord hath put a lying spirit in the mouth of all these thy prophets, and the Lord hath spoken evil concerning thee. —I Kings 22:23
4. And in the fifth month, on the seventh day of the month…Nebuzaradan…came…unto Jerusalem… —2 Kings 25:8
…in the fifth month, in the tenth day of the month…came Nebuzaradan…into Jerusalem… —Jeremiah 52:12
5.For by grace are ye saved through faith…not of works. —Ephesians 2:8,9
Ye see then how that by works a man is justified, and not by faith only. —James 2:24 (Big problem for Protestants.)
6. Jehoiachin was eighteen years old when he began to reign, and he reigned in Jerusalem three months. —2 Kings 24:8
Jehoiachin was eight years old when he began to reign, and he reigned three months and ten days in Jerusalem… —2 Chronicles 36:9
7. Moreover of the children of the strangers that do sojourn among you, of them shall ye buy…and they shall be your possession…they shall be your bondmen forever. —Leviticus 25:45-46
Undo the heavy burdens…let the oppressed go free,…break every yoke. —Isaiah 58:6
Just a sampling. I have thirteen more. But please rectify one to the other as not being a contradiction.
https://thoughtcatalog.com/jim-goad/2014/05/30-pairs-of-bible-verses-that-contradict-one-another/