WESTERVILLE, Ohio — Battleground Ohio was deciding the year’s final special election on Tuesday, a congressional faceoff that tested anew President Donald Trump’s political clout — and the appeal of his signature tax cuts.

The Republican president’s shadow also loomed over primary contests in four other states, none bigger than Kansas, where Trump roiled the governor’s race by opposing the GOP incumbent on the eve of the election.

In Ohio, Democratic county official Danny ‘Connor was locked in a tight congressional race with Republican state Sen. Troy Balderson in a district that has been in GOP hands since before the 31-year-old Democrat was born.

The day’s races, like dozens before them, pitted Trump’s fiery supporters against the Democratic Party’s anti-Trump resistance. The results will help determine the political landscape — and Trump’s standing within his own party — just three months before the GOP defends its House and Senate majorities across the nation.

Voters in Ohio and Kansas joined those in Missouri, Michigan and Washington state. But only Ohio will send someone to Congress immediately.

The script for Ohio’s special election was somewhat familiar: An experienced Trump loyalist, Balderson, was fighting a strong challenge from O’Connor, a fresh-faced Democrat, in a congressional district held by the Republican Party for more than three decades. In an election morning tweet, Trump said Balderson would make a “great congressman.”

The winner will fill the seat previously held by Pat Tiberi, a nine-term incumbent who resigned to take a job with an Ohio business group.

Trump himself campaigned at Balderson’s side just 72 hours before Election Day, a weekend appearance to help energize his loyalists in a district the president carried by 11 percentage points.

Several voters casting ballots in suburban Westerville Tuesday, both Democrat and Republican, said they saw little difference between the two candidates.

Mike Flynn, a hospital unit coordinator from suburban New Albany northeast of Columbus, voted for Balderson as a show of support for Tiberi. Flynn, 43, said he didn’t care for mudslinging on either side of the campaign.

But Trevor Moffitt, a public health doctoral student at The Ohio State University who voted for O’Connor, said he felt Balderson’s attacks on Democrats went too far.

“I’m just tired of the rhetoric of ‘They’re the bad guys, we’re the good guys,'” said Moffitt, 29. “I want to see someone who’s interested in working with the other party so we can actually get something done.”

It’s unclear how much Trump’s support helped or hurt Balderson. Described by campaign operatives as a “Whole Foods” district, the largely suburban region features a more affluent and educated voter base than the typical Trump stronghold.

Ohio Gov. John Kasich, a leading voice in the GOP’s shrinking anti-Trump wing, once represented the district in Congress.

At times, the race has centered on Trump’s tax cuts as much as the candidates.

O’Connor and his Democratic allies have railed against the tax plan, casting it as a giveaway for the rich that exacerbates federal deficits and threatens Medicare and Social Security. Balderson and his Republican allies have backed away from the tax plan in recent weeks, training their fire instead on top House Democrat Nancy Pelosi.

O’Connor has dominated Balderson on the local airwaves. His campaign spent $2.25 million on advertising compared to Balderson’s $507,000, according to campaign tallies of ad spending. The Republican campaign arm and its allied super PAC were forced to pick up the slack, spending more than $4 million between them.

Meanwhile, more than 700 miles to the west, Kansas Republicans were fighting among themselves in the battle for governor, where Secretary of State Kris Kobach was trying to unseat Gov. Jeff Colyer.

Should the polarizing Kobach win the primary, some Republican operatives fear he could lose the governor’s seat to Democrats this fall. The race could become further disrupted if Kansas City-area businessman Greg Orman makes it onto the November ballot. He submitted petitions Monday with more than 10,000 signatures for what could become the most serious independent run for Kansas governor in decades.

Kansas Secretary of State Kris Kobach speaks during a press conference in Mission, Kans., after President Donald Trump officially endorsed him for Kansas governor on Aug. 6, 2018, ahead of the Tuesday primary. | Shelly Yang/The Kansas City Star via AP

Kansas Secretary of State Kris Kobach speaks during a press conference in Mission, Kans., after President Donald Trump officially endorsed him for Kansas governor on Aug. 6, 2018, ahead of the Tuesday primary. | Shelly Yang/The Kansas City Star via AP

Trump made his preference clear for Kobach.

“He is a fantastic guy who loves his State and our Country – he will be a GREAT Governor and has my full & total Endorsement! Strong on Crime, Border & Military,” the president tweeted on the eve of the election. “VOTE TUESDAY!”

Republicans were hoping for Democratic discord in Kansas’ 3rd Congressional District, a suburban Kansas City district where several candidates were fighting for the chance to take on Republican Rep. Kevin Yoder in November.

The five-way Democratic primary featured labor lawyer Brent Welder, who campaigned recently with self-described democratic socialists Vermont Sen. Bernie Sanders and ascending political star, Alexandria Ocasio-Cortez, a New York congressional candidate.

Also in the race: Native American attorney Sharice Davids and former school teacher Tom Niermann.

Voters in suburban Detroit were also weighing in on the direction of the Democratic Party. Three mainstream Democrats were among those vying for a chance at retiring Republican Rep. Dave Trott’s seat in November. The field includes Fayrouz Saad, who would be the first Muslim woman in Congress.

And in suburban Seattle, three Democrats vied in a jungle primary for the seat held by another retiring Republican, Rep. Dave Reichert.

The field was set in two Senate contests as well.

In Missouri, Democratic Sen. Claire McCaskill claimed her party’s nomination, while state Attorney General Josh Hawley will represent the GOP.

Michigan U.S. Senate candidate John James gives a thumbs up after casting his ballot on Aug. 7, 2018. | Max Ortiz/Detroit News via AP

Michigan U.S. Senate candidate John James gives a thumbs up after casting his ballot on Aug. 7, 2018. | Max Ortiz/Detroit News via AP

And in Michigan, Democratic Sen. Debbie Stabenow will take on military veteran and business executive John James, who won the Republican nomination. He would join Tim Scott of South Carolina as the only black Republican senators if he wins in November.

Hours before polls opened, Trump again weighed in on Twitter, casting James as “a potential Republican star.”

Associated Press writers John Hanna in Topeka, Kansas, and Angie Wang in Westerville, Ohio, contributed.