God was not engaging in simple genocide for the sake of it.
The religious practices of the Cannaanites and worshipers of Baal and Molech involved child sacrifice of burning their newborns alive as sacrifices to those gods.
If God did not punish that behavior, then He would not be just.
So the condemnation by the God haters then implies that they are OK with the religious practice of those people groups, that they think burning children alive is OK.
Then they can be asked what their solution to that kind of problem would be.
RE: The religious practices of the Cannaanites and worshipers of Baal and Molech involved child sacrifice of burning their newborns alive as sacrifices to those gods.
OK, then please explain why this would include killing EVEN THE CHILDREN? If they were the victims of child sacrifice, why eliminate the victims?