Yeah avi is ancient. :) mkv quality is better of course, it has support for codec like H.264/AVC among other technical stuff that avi doesn't. It's a better container if you're an encoder but I hardly think it will replace avi in the long run. It's just not famous enough to get away with it :lol: checkout
www.matroska.org for the complete list of features.