Rep. Jerry Nadler beats Rep. Carolyn Maloney in bitter New York House primary

Rep. Jerry Nadler defeated his longtime colleague Rep. Carolyn Maloney in a contentious Democratic primary Tuesday in New York’s newly drawn 12th Congressional District, NBC News projects.

He’s all but guaranteed in November’s general election to win the heavily Democratic district, 

 which merged Manhattan’s Upper West Side and Upper East Side into one and pitted the two long-serving lawmakers against each other.

Nadler and Maloney were both first elected in 1992 and have since risen to prominence in the House: Nadler chairs the Judiciary Committee, and Maloney chairs the Oversight Committee.

After he cast his ballot in the Upper West Side on Tuesday morning, Nadler told NBC News he intends to keep his top spot on the Judiciary panel if he is re-elected.

"Absolutely, I’ll seek to remain the top Democrat on the Judiciary Committee, and I don't think there's much question that that’ll happen," Nadler said. 

"What I want to achieve is, I believe this country is really a democratic system — with a small d — is threatened. And we're in a pivotal position on the Judiciary Committee to defend against that threat through voting rights legislation and administration."

If Republicans win control of the House this fall, Nadler would lose his committee gavel and likely serve as a ranking member.