After a contentious campaign, Zohran Mamdani, Andrew M. Cuomo and Curtis Sliwa have put their fates in the hands of voters.