See THIS is a more interesting version of the conversation. :P The one I saw was something like, “Raise Dead creates an Evil creature, and creating an Evil creature is an Evil act, per the rules. Period, end of story.”
And heck, even without exploring shades of gray morality and cultural constructs, having raised dead trap the soul of the person is more interesting worldbuilding. Even if it’s a black & white situation, it drives home who the villains are.
Oh, it also had the [evil] tag, which means that just how a spell tagged [fire] releases elemental fire into the world, a spell tagged [evil] releases pure evil energy, magically making the world a worse place… somehow. For reasons. 3.5 loved to give alignment mechanical effects, it had one or two books (Vile Darkness was technically for 3.0) entirely dedicated to hard rules for morality.
But 5e doesn’t have tags like that, and alignment is almost irrelevant. Which is probably for the better, because alignment is incredibly subjective.