I often use my mountain bike for shorter rides (up to 40 miles or so), especially in the city or on bad roads. With all the stop lights and traffic, the speed difference is probably not significant and the more upright riding position give me better visibility and control in traffic.
For longer rides on open roads, especially with lots of climbing, the road bike is faster and more comfortable.