Mr. Maloney said that he and other New York Democrats were unable to overcome suburban fears of crime. He also had some harsh words for Representative Alexandria Ocasio-Cortez.
Mr. Maloney, who leads the Democratic Congressional Campaign Committee, was seeking to represent a different district after New York’s messy redistricting process.
Several contentious races have stirred up intraparty fighting, with ramifications for Washington and how abortion politics will play out during the fall elections.