Rep. Elise Stefanik — the upstate lawmaker who became an overnight GOP superstar with her performance in the impeachment inquiry — raised a whopping $3.2 million in campaign contributions over the last quarter of 2019, beating out Democratic Reps. Adam Schiff and Alexandria Ocasio-Cortez.

Schiff, the lead House impeachment manager, raked in $2.5 million, while Democratic-Socialist darling Ocasio-Cortez collected $1.9 million in the same period.

Stefanik (R-Schuylerville) shot to stardom in November thanks to her aggressive questioning of witnesses who testified before the House Intelligence Committee about President Trump’s dealings with Ukraine.

Trump was so impressed that he tapped Stefanik to be one of his advocates during the Senate trial.

Stefanik — who told The Post last November that she’s “proudly the opposite of AOC” — raised $3.2 million from Oct. 1 through Dec. 31 for her re-election bid and spent $1.2 million, records show. She had $3.4 million in cash on hand.

But the 35-year-old’s role in defending Trump also helped generate a gush of cash for her Democratic opponent, Tedra Cobb, who raised $2 million in contributions and has $2.2 million in cash on hand.

Stefanik defeated Cobb in 2018, earning 56.1 percent of the vote to her lefty challenger’s 42.4 percent.

Stefanik tangled repeatedly with Intelligence Committee chairman Schiff and witnesses during the House impeachment hearings.

In one particularly viral moment, Stefanik called out Schiff for being in favor of the Trump whistleblower testifying — before he switched to being against it. To make the case, she reeled off a dozen or more of Schiff’s own past statements on the matter.

She was first elected in 2014 to represent upstate communities north of Albany to the Canadian border, including the expansive Adirondack region.

Stefanik said she was “overwhelmed” by the historic level of support.

“Every day of the week, I choose the North Country and America over the far-left Hollywood liberals like Rosie O’Donnell and Chelsea Handler who are funding my opponent. This record-breaking support is indicative of the countless bipartisan results I’ve delivered for the hardworking families in my district,” Stefanik said in a statement.

But Cobb claimed she has more grass-roots support than Stefanik and is not taking corporate donations.

“Elise Stefanik’s campaign continues to be funded by the very corporations that have increased the cost of healthcare for New York families, said Cobb.

“ I will never accept corporate PAC contributions. Unlike Elise Stefanik, my vote will never be for sale.”