Like me and many/most Christians, Rachel Held Evans has struggled with the violence of the Old Testament. She puts an old answer to this problem very succinctly:
Finally, the last thing I know is this: If the God of the Bible is true, and if God became flesh and blood in the person of Jesus Christ, and if Jesus Christ is—as theologian Greg Boyd put it—“the revelation that culminates and supersedes all others,” then God would rather die by violence than commit it. The cross makes this plain. 
 Rachel Held Evans, Inspired: Slaying Giants, Walking on Water, and Loving the Bible Again (Nashville, Tennesee: Thomas Nelson, 2018), 76-77.