Voadam
Legend
In my experience it is the classes with alignment restrictions (mostly older edition paladins and clerics) where there is significant DM variance on overseeing whether players are playing their characters "right" and imposing mechanical penalties for doing it "wrong."
It was a big discouragement for me personally to play those kinds of classes unless I was specifically sure the DM would be comfortable with how I planned to play my characters. I had little interest in working to roleplay out someone else's views of the specific correct way to be lawful good or a divinely powered character. Particularly when there were similar options like just being a LG aasimar fighter for the hero end or a wizard for the magic end without the close DM oversight that often got applied to a paladin or cleric. I had zero interest in roleplaying out atonement for not playing to match someone else's idea of the right way to do things.
It was a big discouragement for me personally to play those kinds of classes unless I was specifically sure the DM would be comfortable with how I planned to play my characters. I had little interest in working to roleplay out someone else's views of the specific correct way to be lawful good or a divinely powered character. Particularly when there were similar options like just being a LG aasimar fighter for the hero end or a wizard for the magic end without the close DM oversight that often got applied to a paladin or cleric. I had zero interest in roleplaying out atonement for not playing to match someone else's idea of the right way to do things.