The ethical consistency displayed by Mamdani is a powerful rebuttal to accusations of hypocrisy.