The Democratic primary has drawn an unusually large field of challengers seeking to seize on the unpopularity of the incumbent, Mayor Eric Adams, who plans to run as an independent.