Yeah, if he had simply kept his mouth shut, smiled and wore a large button that said "I'm not Hillary" until after the election he would've had good chance of winning.
He forgot the old adage...
"Keep quiet and people may wonder if you are a fool. Open your mouth and you will remove all doubt."