Which religion is that? Christianity certainly don't, and Islam seems to mirror it. Judaism has always been pretty open about being exclusionary in WHO they love.
Now, they do all talk out both sides of their mouth... "Love everyone as your neighbor, but stone gays and rebellious teenagers" etc, etc, ad nauseam
You can find a lot of double speak within the Abrahamic religions. Their main aim is to gain new converts to their religion, by any means possible. They will blabber like "
Love everyone as your neighbor", to gain followers among the pacifist population, while use genocide and warfare to forcibly convert the rest of the population which does not fall for it.