Mamdani had a rare combination of his own moral clarity and a willingness to engage with a specific strain of internet leftism.