Big Difference
Don't be kind to people who are being a dick to you, be cordial - big difference.
Always be appropriate to the specific situation.
No thing, including kindness or loyalty, is always good or bad - always be appropriate to whatever the situation calls for.