By this reasoning, Optimus Prime had every right to kill Megatron since he betrayed him. But no, Optimus Prime, once again, proved he was right. He let his best friend banish from Iacon, instead of killing him. He proved he was better than Megatron himself.