When Winning an Election Undermines Democracy