… I’m addressing an angle you personally introduced into it (or someone did, way upthread, and you seem to be arguing alongside), which is the argument (you have been making, and I am objecting to) that genocide and killing children is NOT inherently bad…
Just to be clear. I am certainly not arguing that genocide or the murder of innocents are not inherently bad - they are.
In fact, God in the OT uses the sacrifice of children to Moloch as the warrant for taking the land away from the Canaanites, so God also views it as inherently bad.
Perhaps a parallel might make things clearer. Think of the laws of nature operating on bodies and entities in the world. It could be legitimately claimed that given those laws the force of gravity inherently draws bodies together. There is no instance where gravity does not apply given those laws.
Now think of the moral order as being governed by moral laws. The problem is that this world is morally broken because moral agency presumes the capacity for autonomous moral choice, but the moral agents in this, our current, moral order have misused their autonomy and thereby have created a dysfunctional moral order. If the dysfunction were not so, the moral order would function perfectly according to moral laws just as the natural order operates under the laws of nature.
Now it is possible that God could suspend the laws of nature and bring about a miracle, but he doesn’t normally do so because he wills the order embedded in the laws of nature.
The moral order is a different story though because God wills the moral laws to apply unfailingly, but the very nature of the dysfunction of evil and the autonomy of moral agents makes it such that God must find ways to put the moral order back together without infringing the autonomy of moral agents.
Could God use pain and suffering to reorder the dysfunction of moral agents not to force moral order on them but in the attempt to reform or form good moral agents by appropriate moral consequences? Could God use pain, suffering and evil (that already exist in the broken moral order) with the long term intent to make the entire order right according to an infallibly known (to God) plan to reset the moral order?
Ergo, moral laws do generally govern morality, but - akin to God’s capacity to miraculously intervene and suspend the laws of nature - God could extra-morally intervene in the moral order provided it is purposed towards righting the entire moral structure.
Morality and free will are both willed by God but within his purview is the resetting of the entire moral landscape and that may entail using pain and suffering to bring about that reset. God alone could have the perspective to understand how and why. We wouldn’t due to our limitations.
So generally God originated and wills the moral order but may - similar to his use of miracles in the natural order - suspend or intervene in the moral order to bring about a long term reset of the moral order itself.
Such extraordinary interventions in the Old Testament might be instances of God intervening extra-morally towards more far reaching ends.