A Democrat from Maryland is like a Democrat from Massachusetts. It wouldn't be accepted by anyone except for Democrats.
To be fair, out of the last two Presidential candidates from Massachusetts, the Democrat did better than the Republican.
In terms of the margin of victory and EV yes but Romney had a higher vote total than Kerry and ran against a tougher incumbent. Either way, I'm not sure what your point is. The Bush campaign hounded Kerry as a Massachusetts liberal while Obama made no criticisms of Romney being from Massachusetts. The fact that Kerry was a Massachusetts liberal hurt him more than Romney was hurt because of his home state regardless of what the results were. You have to actually look at who was influenced by the single fact of each candidate being from Massachusetts.