For a politician as savvy as Boston Mayor Michelle Wu, it was a surprising blunder.