"….adherents of a given religion, like everyone else, focus on things that confirm their attitudes and ignore things that don’t. And they carry that tunnel vision into their own scripture; if there is hatred in their hearts, they’ll fasten onto the hateful parts of scripture, but if there’s not, they won’t. That’s why American Muslims of good will can describe Islam simply as a religion of love. They see the good parts of scripture, and either don’t see the bad or have ways of minimizing it.
So too with people who see in the Bible a loving and infinitely good God. They can maintain that view only by ignoring or downplaying parts of their scripture.
For example, there are those passages where God hands out the death sentence to infidels. In Deuteronomy, the Israelites are told to commit genocide — to destroy nearby peoples who worship the wrong Gods, and to make sure to kill all men, women and children."
Robert Wright (amongst other things has taught philosophy at Princeton and religion at the University of Pennsylvania).