They aren't mutually exclusive: being nice or not is a tool in your toolbox for all interactions.
You can be nice all the time, but that doesn't mean you'll be effective all the time.
It's crazy to me that we engineers are so focused on hacking systems but seem to denigrate hacking personal interactions as if it's something dirty blah blah[0].
But I bet you wouldn't like someone who tries to suck up to you, either. So maybe the idea is to make a good impression on others, and that might need more than simply being nice, even if you don't want to be successful.