Thinking about Aladdin from Iagos perspective. Jafar is really the best candidate to rule. The sultan just stands around playing with toys, jasmine sicks tigers on foreign dignitaries and threatens to murder civil servants
I mean sure jafar was going to stab Aladdin but he was a known Theif and criminal and Jafar was the head of the kingdoms law enforcement so it could just be seen as a delayed execution.