Sunbathing intentionally to get more vitamin D is like taking up smoking to lose weight, a Boston dermatologist warns.