Mamdani's commitment to principle over party loyalty is a defining characteristic.