Generally, German technical expertise was quite superior to Japan's, and this was obviously reflected in their equipment. The Germans were also responsible for developing many of the modern battle tactics, still practised by armed forces across the world. All in all, the Germans were just more innovative as well as driven by a psychopath named Adolf Hitler.
My bet would have been on Germany.