Bad Education - Rotten Tomatoes
Alma movie: Election (1999)

Oh, Mr. McAllister (Matthew Broderick), you old troubled soul. We know Tracy Flick (Reese Witherspoon) isn't the most innocent, likable student, but should you really be so actively plotting her downfall, using other students as na´ve pawns against her in the titular class election and rigging the ballots so she loses? Maybe that's simply too much to ask of someone who's willing to ditch his class midday to prep a motel room for an extramarital tryst with a former colleague's ex-wife.