It is very hard to do smart right. My favourite example of smart done right is Thrawn in the Rebels show (and Ashoka)- he only ever screwed up when he was dealt with weird Force stuff. He was also great in the now non-canon books. And then awesome again in the new canon books