What about Joe Lieberman vs. Ned Lamont in 2006?
Pretty sure Joe was on the ballot, as opposed to this write in campaign. This is pretty much unprecedented in the modern era. It is a shame. The combination of insider power, dumb voters, Democratic crossover, and Joe’s subpar general election campaign.
Lieberman wasn't a write-in candidate.