Chicago was picking a new mayor. The race came down to a choice between a longtime politician and a former federal prosecutor who cast herself as an outsider.