Nine Democrats who wish to be New York City's next mayor sparred over how they'd work or tangle with Donald Trump, public safety, affordability, and other topics.