A genuinely unpopular opinion of mine: Donald Trump is a lot smarter than most of the people working in politics and media.
He does a lot of “dumb things” due to a mix of lack of subject matter knowledge and simply having a very different set of goals from most people who work in politics professionally.