Deuteronomy 20:18
KJV That they teach you not to do after all their abominations, which they have done unto their gods; so should ye sin against the LORD your God.
B:E Project This is so they don't teach you to copy all the detestable things they do for their gods, which would make you sin against the LORD your God.
Context: This gives the stated rationale for the total destruction just commanded - preventing the same religious corruption, including the child sacrifice and occult practices named back in chapter 18, from spreading into Israel.
Meaning: The reasoning given connects back directly to chapter 18's warnings about detestable practices - the concern voiced in the text is about moral and cultural influence, not ethnicity. Whatever one makes of the severity of the response, the stated reasoning is specifically about preventing the spread of practices Israel itself would come to see as devastating, not group identity as such.
Lesson: The concern here is protection from corrupting influence, not hatred of a people - God wanted his people kept from spiraling into the same abominable practices. Jesus wants you to guard your own heart from harmful influences too, while still loving the people who hold different beliefs.
See Also: 1 Corinthians 15:33 (evil communications corrupt good manners) - the real danger of being shaped by harmful influence. 2 Corinthians 6:17 (Come out from among them, and be ye separate) - guarding spiritual integrity without needing to destroy others.
Original Language: יְלַמְּדוּ (yelamedu, H3925) - 'they teach', from lamad, the same root used in 18:9 ('thou shalt not learn'). The reasoning is explicitly about influence: what the Canaanites might 'teach'. תּוֹעֲבֹתָם (to'avotam, H8441), 'their abominations', links back to the practices listed in chapter 18, such as child sacrifice and divination. וַחֲטָאתֶם (vachatatem, H2398), 'and ye sin', is chata, whose everyday sense 'to miss' is used of slingers who never miss the target (Judges 20:16).
