You answered your own question. The Canaanites sacrificed their children to their god, Molech. The way they would do it is they would place a toddler on the hands of a statue of Molech that has been over fire which made the hands red hot; the Canaanites would let the child scream until it died on those red hot hands as a sacrifice despite God (the true God) warning them to stop. After about a hundred years, God ordered the elimination of the Canaanites through Joshua. God stopped the evil of killing innocent children yet God is constantly criticized for stopping that evil by the very same people who claim God won’t stop the evils of the world today.