Who was a better candidate?
I also think you're entirely wrong. Trump is by far THE BEST candidate for a time such as now. Flaws and all.
Btw, who was the last "unflawed"candidate you can name?
The sleaze factor with Trump is just there. In that way he is more flawed than all the other candidates he ran against in the primary. The fact that the vulgarity from Trump wasn’t a major impediment to his popularity is evidence of the moral rot in the country.
He was the only candidate willing to give the democrats what they dish out. So maybe he is the best candidate in terms of winning the general: Time will tell on that point. But he was not the best in terms of moral character.