It sounds more like they just want to sell more sunscreen. They don't really care what color your skin is as long as money is changing hands. Nothing racist about that.
And doctors don't want to differentiate because it's safer to just say "sure, wear sunscreen all day and wear a helmet too, in case you get hit by a meteor". Nobody will blame a doctor for repeating the currently-accepted dogma. Maybe they'll blame sunscreen companies in ten years, but not the doctor.