In a primary, you pretty much have to.
Well, that may work to get rid of Jamaal Bowman guaranteed, but then they have to leave the Democrat Party to vote in the Republican to ensure that neither Democrat wins and is returned to the US House.