Perhaps I've been getting my editions mixed up but there's also the spell Protection from Evil and Good in 5e, which is somewhat similar to the older spells except that it offers protection "against certain types of creatures - Aberrations, Celestials, Elementals, Fey, Fiends, and Undead" instead of a blanket protection against any NPC or monster with the appropriate alignment.

That said, I'd still rather have alignment implemented than not.