Being pleasant is nice, and it will get you lots of friends.
Being smart will help you avoid making bad decisions, including who you choose as friends.
Being stupid makes you a perpetual victim, including by those you stupidly thought were your friends.
Therefore, I say, being smart is better.
And being smart plus being pleasant is better still.