I always shake my head at the atheists who complain about the Biblical Jehovah for having wanted to wipe out the various gentiles in and around what is today known as Palestine and Israel. Jehovah was not the one who wanted to use actual virgin girls in his scapegoat rituals like the Hittites. Jehovah was not the one who required young women to lose their virginity as temple prostitutes as in certain times during the history of the Babylonian Empire. Jehovah was not the one who wanted people to actually sacrifice their sons like those worshiping the nastier of the baals (go ahead and talk about Isaac all you want, but at the end of the day, Jehovah provided Abraham with a substitutionary sacrifice, so no one had to die).
If you want to criticize the book of Joshua for being genocidal war propoganda, go for it. But don't go around ignoring the fact that secular archeology and anthropology has demonstrated that these same gentiles were monsters in their own right. Their gods are not the kinds of gods I intend to adore.