Obito would be better. Nagato proved how shitty of a leader in the Hidden Rain he was by simpling ignoring to take care of how the village was portrayed..
Both would be bad hokages. Obito is too emotional and Nagato has too little emotion. But to answer your question nagato because his actions where to make a better world. While obito actions where selfish to see Rin again and end his pain.
Obito would be better. Nagato proved how shitty of a leader in the Hidden Rain he was by simpling ignoring to take care of how the village was portrayed..