Contradiction with John 3:16
Joshua 10:16 describes enemies hiding, while John 3:16 focuses on God's love and redemption for humanity.
John 3:16: For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life.
Contradiction with Matthew 5:44
Joshua 10:16 implies conflict, whereas Matthew 5:44 teaches to love and pray for enemies.
Matthew 5:44: But I say unto you, Love your enemies, bless them that curse you, do good to them that hate you, and pray for them which despitefully use you, and persecute you;
Contradiction with Exodus 14:14
Joshua 10:16 involves people taking action by hiding, but Exodus 14:14 says the Lord will fight for you and you need only to be still.
Exodus 14:14: The LORD shall fight for you, and ye shall hold your peace.
Contradiction with Romans 12:19
Joshua 10:16 shows humans dealing with adversaries, while Romans 12:19 advises leaving vengeance to God.
Romans 12:19: Dearly beloved, avenge not yourselves, but [rather] give place unto wrath: for it is written, Vengeance [is] mine; I will repay, saith the Lord.
Contradiction with Proverbs 25:21
Joshua 10:16 involves enmity, but Proverbs 25:21 encourages feeding and giving drink to your enemy if they are in need.
Proverbs 25:21: If thine enemy be hungry, give him bread to eat; and if he be thirsty, give him water to drink: