Comment by tirant
The definition of good is probably the closest to doing the opposite of inflicting pain on others. There’s very little chance that you will be hated by being good. So definitely behaving or being good is not so different than behaving in a way that other people don’t hate you.
Or sometimes people love you for inflicting pain on others. Look at current political figures beloved by their cult.
Or there are others trying to do good things and being hated for taking a courage to challenge things.