I agree that they'd never let it get to a courtroom setting, but I think Jesse ultimately flips and before Walt is ever apprehended, he fakes his death, while Jesse winds up leaving town never to be heard from again. I think we were clued in to this possibility during Badger's story when he foreshadowed by saying "where are you going? You're missing the best part."