Musician John Legend started the Twitter debate that led to the mayor's comments