I just realized something, after Obito sacrifices his life, Madara would most likely just control his body through the six paths.
If you notice, the chakra rods have already been planted on Obito from the start
and who knows, there's probably more bodies that he would revive through...