Yes, in more than one city, the instruction from God was to devote all to the sword, 100% of the inhabitants. (and it helps to know also even the gold and silver were to be thrown into bonfires for some of those cities -- because it illustrates the goal (stated in Deuteronomy 12:29-31: that this profoundly evil
culture musn't be allowed to influence Israel and so continue later in time)
That total killing of all inhabitants people would usually characterize with words like 'genocide'.
But here in
this thread, the title is
"God Ordained"..... and, we know that God undoes death. And by His Grace will generally save all who are willing to repent and/or turn to Christ (as we read about in 1rst Peter 3:18-20, 4:6 as a prime example)
So, I been trying to point out the miswording in the OP. -- "God Ordained Genocide" -- it's not the best phrasing for a very specific reason.
I.e. -- if you hear that someone was murdered (or slaughtered, etc.), and then you find out they are still alive, then the report that claimed or suggested they were dead is incomplete or misworded or mistaken in a key, basic way.
So, "God Ordained Genocide" is then a misnomer. It's a wording that in effect suggests to the lost that God cannot exist also.
If God makes the 'dead' alive again....then He didn't really do what people think of as 'genocide' -- but instead its something else, more like this:
Transportation.
(including for to various places, such as for instance for the guilty of crimes: Penal Transportation:
Penal transportation - Wikipedia)