The talk about the moral code was also new and interesting for me.
My thoughts about it:
This is why I like The Witcher and now BG3: They have no alignment. You do things and those choices have consequences.
I also like morally gray or ambivalent stuff. Like several option can have both positive and negative effects, for you and for others.
It is not just Ok but even recommanded to present intelligent evil options or evil options that give a better reward.
Players want choices and if you are forced to be dumb evil its just dumb.
I think it is OK to present evil options as long as the game does not present evil as something good. So a big NO to "torturing other people is great fun."
We should always remember that the opinions shown in the game are not automatically the opinions of the devs.
Part of role playing is to present different points of view, including evil, bizarre or absurd ones.

Prof. Dr. Dr. Mad S. Tist

World leading expert of artificial stupidity.
Because there are too many people who work on artificial intelligence already