The Canaanites had 40 years to plan their evacuation from the land God gave to Israel. They knew the Hebrews were coming and they could have left. Instead, they defied God and were destroyed for it.
If God is on your side, your enemies will have one of two reactions when they face you in war: abject fear or prideful defiance. Either way, they lose. Your enemies will scatter, hide, surrender or else they will fight and die at the hand of God. #devarim