Using transistors with different threshold voltages
It's not impossible (depending on what voltages you had in mind) - it's possible to get precision-threshold MOSFETs +/-20mV 0, 0.2, 0.4, 0.8, 1.4V but it seems like really silly thing to do when comparators and resistors are cheap, tiny (in the right packages) and very accurate.