Mountain bikes are okay, they're reliable and the big tires make the ride a bit more comfy over rough terrain, but they also weigh more and if you use the stock knobbies you'll be cursing yourself out for not getting slicks sooner.
I haven't tried a road bike, but everyday I see reasons why they're better commuters.