There are editions of D&D where this is totally fine.
Orcs, gnolls, trolls, red dragons in many OSR games are evil to the bone. You can kill them with impunity.
Sounds like the new trend is to create a different narrative world (and thus a different kind of adventure) in the newest edition...