Hundreds of thousands of voters in Maryland, West Virginia and Nebraska went to the polls on Tuesday, weighing in on primaries whose results pointed to a desire for moderation, achievement and diversity, and a rejection of the political power of money.

And what about those zombie campaigns in both parties’ presidential races? Nikki Haley had a pretty good night for a candidate who long ago dropped her campaign for the Republican presidential nomination.

Here are four takeaways:

Representative David Trone, a co-owner of the giant alcohol retailer Total Wine and More, gave up his safe House seat, spent more than $60 million of his fortune and lost the Senate Democratic primary to Angela Alsobrooks, who hopes to become only the third Black woman to be elected to Congress’s upper chamber.

In a showdown between money and history, history won.

Maryland would ordinarily have been a safe bet for Democrats hoping to hold the seat of Senator Ben Cardin upon his retirement, but the entry of Larry Hogan, a popular former governor and Republican moderate, into the race has scrambled the equation. Democrats initially were happy to have Mr. Trone as their nominee, knowing they wouldn’t have to spend a dime for him in the general election.

But senior Democrats in Maryland and around the country came to believe they needed a candidate who could inspire their base voters in Baltimore and the suburbs of Washington to come out in November to beat Mr. Hogan, an anti-Trump Republican who proved his bipartisan appeal with two governor’s race victories in his blue state.

Ms. Alsobrooks crushed Mr. Trone in her home base, the diverse Washington suburbs of Prince George’s County, where she is the county executive. She beat him in Baltimore City, Baltimore County and suburban Howard County. She even narrowly beat him in his home base, Montgomery County, a Washington suburb with some of the most affluent communities in the country.