Kennedy was an intellectual and beat Nixon. Fact is that the smarter candidate usually wins.
I agree with your overall point entirely, but I must point out that Nixon was considerably more intelligent than Kennedy and, well, every other American President ever since. He had many flaws, but lack of intelligence was certainly not one. He had an extremely sharp and complex mind, quite a difference from the Bushes and Obamas of the present.