MKV is the format that hoards: video, a dozen audio tracks and every subtitle, all in one box. It was born in 2002, the open-source Matroska project, and its real weak spot is playing on TVs, iPhones and editors that never learned to open the box.
MP4 is the world's default video: the file that plays before anyone has to think about it. A container, most often carrying H.264 or H.265 video with AAC audio. That makes it the right destination when what you need is playing everywhere: browsers, phones, TVs, editors, slide decks.