The battle between them was not about skills, but about brains. Although they had different methods, they were both manipulators of time and space ninjutsu, and in that battle, Minato won. The reason is not that he is technically superior, but that he has found out the weakness that makes Madara materialize instantly when he catches someone, and took advantage of Madara's carelessness to create a chance of victory