I believe that neither Obito or Madara would be spared, and I would like to discuss the reasons individually.
Let us first consider Madara. He described himself as a ghost of the Uchiha, and this should be interpreted as such: a ghost of the Uchiha before they were, in his eyes, "tamed" by the ideals of Senju Hashirama. Madara held onto his hate and allowed it to take root in that underground that he lived in since his fight with Hashirama. He brought the Gedo Mazo from the moon, manipulated the circumstances of Rin's death/Obito's fall, and after his revival he was directly responsible for the deaths of many shinobi. Madara was even able to cast the mugen tsukuyomi on the world and up to his death showed no regrets. There was no way that he would be allowed to live, not if Naruto truly wanted peace with the other villages. As the man that effectively destroyed the world, they would never allow Madara to live.
Obito would not have been spared either. He is the man that became "Madara" and accomplished more that the original in fewer years. Obito's crimes include manipulating Kirigakure, attacking Konohagakure by releasing the nine tails, forming and secretly controlling the Akatsuki, assisting in the Uchiha clan's genocide, the fourth ninja war, and most importantly, reviving the ten tails. Despite re-igniting his will of fire shortly before his reduction to ash (almost poetic) and being invaluable to the defeat of Kaguya, that does not erase the fact that he caused the issue in the first place. There was literally no way for Obito to redeem himself that did not include him dying, and as with Madara, the world would not accept him living. Kakashi would not be able to excuse Obito within Konohagakure, much less the rest of the world. He and Naruto would only lose face trying to attempt it.
Many might then try to bring up Sasuke's pardon, but Sasuke's, Obito's, and Madara's effects on the world were VERY different. Sasuke was forgiven because he himself started on his path as a victim of Madara and Obito's plot. He was also young, becoming a runaway ninja at the age of 13. He then came unto the world's microscope for three GOOD reasons ("killing" Orochimaru, "killing" Deidara, and "killing" Itachi. All INTERNATIONAL criminals.) Sasuke then joined Akatsuki and attacked the Kumogakure jinchuuriki, followed up by attacking the gokage kaidan. However this resulted in the deaths of...Danzo (someone that was caught trying to manipulate Mifune) and samurai (who attacked him first, despite Sasuke being wrong for being there in the first place.) And then Sasuke assisted in fighting against Obito, Madara, the ten tails, and the mugen tsukuyomi. He was redeemable because despite doing bad, he usually did something that had to be grudgingly accepted as good RIGHT AFTER.
In any case, Madara and Obito had no chance of being spared, while the not even a legal adult Sasuke was barely forgiven.
What do you think?