By resigning, Rafizi Ramli and Nik Nazmi Nik Ahmad chose the harder, but principled route to uphold democratic integrity.