At speeds above 15 mph or so, the difference in aero drag between an upright position and a flat back position will dwarf the effect of any other factor. You haven't said what your position is on the MTB. If the handlebars are higher than the saddle, I suspect the main thing slowing you down is aero drag.