Mamdani and Jefferies have found themselves supporting opposing candidates in two competitive New York City primaries.