Reconciling The God of the Old Testament and the New Testament
Is God a God of Violence & Genocide?

These are different questions without “perfect” answers. Here are some links that can help. (note: Links appearing here do not constitute full endorsement of all of these authors’ views)

Is God a Genocidal Bully? (Tricky Question #5)

How Could God Command Genocide in the Old Testament?