You can't simply reduce it to the container(that's what mkv, avi, mp4 are), it's a lot more complex than that. You could have the exact same video and audio in all of these and if you wanted, you could even put the ISO in them without re-encoding it.
In encoding, there is no best(on a popular...