I've seen a lot of discussion about how Vision convinced Ultron to spare humanity by helping him process his grief and realise he wasn't alone. While I agree that this was part of it, I'm not convinced it was the whole reason.
Even after Vision's emotional appeal, Ultron remains dismissive:
"Vision, I hope you don't think that tossing me a last-second 'I'm your boy, Pops' is really going to work."
It's only after he realizes what Vision has done that his attitude changes:
"You didn't just burn out your core for this. You toasted mine as well."
As others have pointed out, if Ultron continued the attack knowing he would die alongside humanity, he would be exhibiting the very self-destructive tendencies he condemns in humans. Perhaps Vision's emotional appeal laid the groundwork, but forcing Ultron to confront his own hypocrisy is what ultimately convinced him.
What I'm less sure about is whether Ultron was genuinely in danger of dying.
We're told that Ultron exists across millions of nanites, but also that killing him wouldn't stop the attack on London. Does his consciousness occupy all the nanites or only some of them? And what exactly does burning out his core mean for a being with a distributed consciousness?
We also know that Ultron could communicate with the nanites Vision failed to assimilate from within the simulation. So what prevented him from transferring his consciousness into them and escaping while allowing the attack to continue?
My theory is that the entanglement prevented him from doing so. He needed Vision to release him, which presumably happened after he issued the self-destruct command. This might also explain why Ultron expected Vision to believe he had died.
Alternatively, perhaps Ultron believed they were both going to die regardless, and it was only Billy and Tommy's intervention to save Vision that allowed Ultron to escape. In that case, he genuinely chose not to take humanity down with him, without knowing he would survive.
I guess my main question is whether Ultron could have survived without stopping the attack. Was his decision driven by self-preservation, the realization of his own hypocrisy, a genuine change of heart, or some combination of these?
I'm particularly curious about why the realization that both their cores were burning out seemed to be the turning point.