Madara loses against Kaguya. Once he gets teleported into a different dimension, Kaguya can simply leave him to die. And leaving him be in another dimension isn't running away, it's tactics. Zabuza trapped Kakashi in a Water Prison that Kakashi couldn't escape from. Obito can leave his opponents to die in the Kamui dimension if he warps them there. It's the same logic. The point of a fight is to kill your opponent or otherwise render them unable to fight. Kaguya can kill still Madara without being in the same dimension as him, if you're going to be so stubborn about the "different dimension = running away" excuse.