They do contradict because people then (as a whole) were not idiots. And, no amount of metaphor or allegory or “being read in context” will ever excuse genocide, mass rape, slavery, or any of it— which was not intended to be allegorical or any other excuse. The abrahamic cults are dangerously, regressive, and do not belong in modern times.