When Donald Trump appeals the Colorado decision disqualifying him from the ballot in that state’s Republican primary, the Supreme Court should overturn the ruling unanimously.

Like many of my fellow liberals, I would love to live in a country where Americans had never elected Mr. Trump — let alone sided with him by the millions in his claims that he won an election he lost, and that he did nothing wrong afterward. But nobody lives in that America. For all the power the institution has arrogated, the Supreme Court cannot bring that fantasy into being. To bar Mr. Trump from the ballot now would be the wrong way to show him to the exits of the political system, after all these years of strife.

Some aspects of American election law are perfectly clear — like the rule that prohibits candidates from becoming president before they turn 35 — but many others are invitations to judges to resolve uncertainty as they see fit, based in part on their own politics. Take Section 3 of the 14th Amendment, which blocks insurrectionists from running for office, a provision originally aimed at former Confederates in the wake of the Civil War. There may well be some instances in which the very survival of a democratic regime is at stake if noxious candidates or parties are not banned, as in West Germany after World War II. But in this case, what Section 3 requires is far from straightforward. Keeping Mr. Trump off the ballot could put democracy at more risk rather than less.

Part of the danger lies in the fact that what actually happened on Jan. 6 — and especially Mr. Trump’s exact role beyond months of election denial and entreaties to government officials to side with him — is still too broadly contested. The Colorado court deferred to a lower court on the facts, but it was a bench trial, meaning that no jury ever assessed what happened, and that many Americans still believe Mr. Trump did nothing wrong. A Supreme Court that affirms the Colorado ruling would have to succeed in constructing a consensual narrative where others — including armies of journalists, the Jan. 6 commission and recent indictments — have failed.

The Supreme Court has been asked to weigh in on the fate of presidencies before, and its finer moments in this regard have been when it was a force for stability and reflected the will and interests of voters. Almost 50 years ago, the court faced a choice to end a presidency as it deliberated on Richard Nixon’s high crimes and misdemeanors. But by the time the Supreme Court acted in 1974, a special prosecutor, Leon Jaworski, had already won indictments of Nixon’s henchmen and named the president himself before a grand jury as an unindicted co-conspirator. Public opinion was with Jaworski; the American people agreed that the tapes Nixon was trying to shield from prosecutors were material evidence, and elites in both political parties had reached the same conclusion. In deciding against Nixon, the Supreme Court was only reaffirming the political consensus.

As the constitutional law professor Josh Chafetz has observed, even United States v. Nixon was suffused with a rhetoric of judicial aggrandizement. But if the Supreme Court were to exclude Mr. Trump from the ballot, seconding the Colorado court on each legal nicety, when so many people still disagree on the facts, it would have disastrous consequences.