The Marist survey suggests that Andrew M. Cuomo is still the favorite to win the Democratic primary, but his advantage over Zohran Mamdani is dwindling.