Mp4, just like mkv, is just a container. It can contain the exact same stream of video and audio (say, a h.264 / AC3 combo, which is very common). Ergo, there isn't any difference between their quality, as it's the codec that decides it. This is also why you can remux an mkv to a mp4 rather...