F. Michael Higginbotham is a constitutional law professor and author who teaches at the University of Baltimore School of Law, and a candidate to fill the late Elijah Cummings' seat representing Maryland's 7th District in the House. The views expressed in this commentary are those of the author. View more opinion on CNN.

(CNN) On August 8, 1974, Richard Nixon resigned the presidency, becoming the first president in American history to withdraw from office. The House had begun impeachment proceedings because of his involvement in the Watergate burglary cover-up, a group of Republican senators had told him he likely had too few supporters to beat conviction in the Senate, and Nixon relented to pressure from the public and Congress.

In an address to the nation, Nixon explained that "by taking this action, I hope that I will have hastened the start of the process of healing which is so desperately needed in America." The next day, Nixon departed the White House and Vice President Gerald Ford took the oath of office.

Nixon's enemies called him " Tricky Dick ." Over the course of his 30-year political career, he showed himself to be vindictive, paranoid and selfish. But his decision to resign could be characterized as an act of patriotism: It spared the nation a painful and extremely divisive process of removing the commander in chief from office. History has recorded that, to paraphrase Shakespeare , nothing in his presidency became him like the leaving of it.

Even a half-century later, the mind of Richard Nixon is a tangled mystery. Deceptive, self-seeking and devious, he was also capable of far-seeing statesmanship (witness his outreach to China ) and a genuine concern for America's place in the world. Historians will long debate which side of his character was salient in his decision to resign. But one thing is clear: By resigning, he protected not only his own historical legacy but also the country he had taken an oath to serve.

Donald Trump should follow suit.

Recently, a majority of the House of Representatives voted to impeach Donald Trump for abuse of power and obstruction of Congress. Both articles arise from Trump's alleged involvement in a scheme to solicit an investigation of political dirt against Joe Biden by Ukrainian government officials, despite no evidence of wrongdoing, in exchange for military aid to help Ukraine in its ongoing conflict with Russia.

Prior to Trump, the impeachment provisions of the Constitution were initiated against three other presidents: Andrew Johnson, whose case fell one vote short of conviction in the Senate; Nixon, whose proceeding never came to a vote; and Bill Clinton, whose case failed to reach even a majority in the Senate, let alone the two thirds needed for removal from office. Of the three, Trump's behavior most resembles Nixon's.

Trump, like Nixon, is accused of participating in a cover-up involving the investigation of political opponents. But Trump's alleged transgressions are worse than Nixon's because they concern an attempt to involve a foreign power in the American political process.

Nixon and Trump also have in common fiercely loyal supporters. Nixon's popularity in his second term had been quite high . He won reelection in 1972 with more than 60% of the popular vote and 520 electoral votes. The Watergate scandal reduced Nixon's political support, but his hardcore supporters urged him to fight on.

But Nixon emphasized country over personal considerations in deciding to resign. While most historians believe the full House would have voted to impeach, and the Senate would have secured the necessary two-thirds vote for removal, the trial process would have been extremely divisive and painful for the country.

In retrospect, we will never know whether a show of stubbornness -- like Trump's -- might have switched the political dynamic and persuaded the Senate to not convict, but we can instead be grateful that Nixon did not put the system to the test.

Bill Clinton, of course, did put the system to test: after an impeachment by the House, he fought and turned back the impeachment effort in the Senate. Yet a generation later, some Democrats wish that he had chosen the Nixon path. It is likely that Clinton's misconduct and his false testimony do not rise to the level of "high crimes and misdemeanors." Yet no one denies that they were grave blotches on his character, and harmful to how the public perceived the dignity of the office of the president.

Moreover, after Democrats found surprising success in 1998, his actions cost his party dearly in the 2000 election. For the same reason, some Republicans today may quietly hope that Trump will go away before 2020.

At this moment, the question goes beyond what is best politically for Trump, for the Republican party, or for Democrats. The question is not whether Trump can secure enough votes to avoid conviction or whether poll numbers will go up or down.

The sole question should be what is best for the country.

And if Trump forces the nation to go through an impeachment trial in the Senate, the consequences for our democracy are grave.

First, Trump will cause a further erosion of confidence in our democratic institutions, such as the Federal Bureau of Investigation, if he continues to attack and undermine the nation's intelligence and law enforcement agencies. Second, his insistence on slavish support from Republicans in Congress will weaken -- perhaps permanently -- the separation of powers required to maintain a legislature capable of functioning. Third, his heated rhetoric will widen the gap between Americans of different political beliefs.

Get our free weekly newsletter Sign up for CNN Opinion's new newsletter. Join us on Twitter and Facebook

The answer is clear: Trump should resign so the country can begin the process of healing. The divisions in the country today are even more corrosive than they were in 1974. That's why it's even more important that Trump emulate the best of Richard Nixon, who, in a rare moment of grace, understood he could only weaken the nation he led by focusing solely on himself, and chose the better path.

In President Trump's acceptance speech of the Republican nomination at the Republican National Convention in 2016, he told the nation, "Nobody knows the system better than me, which is why I alone can fix it." While many mocked the hubris behind that claim, at this moment of national danger it is undoubtedly true: Trump alone can spare the nation the painful ordeal of an impeachment trial in the Senate.