So what is your actual preference? That Russia simply be allowed to invade and take over Ukraine "because Ukraine was pretty damn corrupt anyway" ? What does that accomplish?
The point isn't to pick the "best democracy" as if it were a beauty pageant. It was to oppose unilateral military invasion as an instrument of national policy, which is bad regardless of the form of government of the victim.
Ukraine might have been corrupt, but it was a peaceful neighbor and evolving in the right directions. Russia is (literally) throwing bombs around, cutting internet cables, and generally being a terrorist asshole. And at some point, yes, an emboldened Putin will decide to invade a "good democracy". It's happened before.