Human beings are unstable. That is why they commit atrocities and then said, "But God told me to do it! " We don't accept it from the islamic fundamentalists of Isis, so why should we accept it from ancient peoples? In saying "priceless" I was amazed that the person to whom I was responding could see no difference between murder and mass executions. God cannot do whatever he likes to his creation and still claim to be Good and Love. If "good" and " love" are only whatever God decides they are, then they cease to have any meaning to us any more. The very moral relativity that christians decry in the modern culture is now what they belive of God.
However, I see the bible as the journey of human understanding of God. The great jewish scholars had a more nuanced understanding of the genocide passages, an example here:
https://www.myjewishlearning.com/article/genocide-in-the-torah/
This leads to the highest moral realisation of love itself. We understand him most when we experience his love, and then do our best to share it.