I think 4e's approach was my favorite. The vast majority of creatures were "unaligned", meaning that you just did your own thing, and alignment was not a major aspect of your character.
Then you had characters that were actually aligned, which represented a major part of your character, and had some mechanical impacts.
I feel like 5e basically adopted this, just not obviously. Alignments exist but they have very little mention both for flavor or mechanics. So its there for people to use, but it doesn't have any strong integration in the system.