Note that I'm making no claims on how natural sunburn resistant affects skin cancer.
melanin is also not the only factor in preventing sunburn/cancer. there are many repair pathways and genes, which are present to differing levels in various populations.
I say this from experience. I am a black person who is not particularly dark skinned, and have only had the slightest sunburn once in my life, after I had been working in a field for 16 hours straight in full sun under clear sky detasseling corn. When I got back to camp, the back of my neck seemed slightly sensitive, which was unusual. It was fine the next morning, and never peeled at all. I did the same for 2 weeks, and this was the only time I felt this. This was the worst sunburn (if it was one) that I've gotten in 50 years of life. I've spent plenty of time outside, and plenty of time inside being a code monkey and never going outside. I've never worn sunscreen.
I've never met a black person as brown as a paper bag who ever got a sunburn, at least that I know of. My dad is pretty pale, I think I would have heard about it.
We both get sunburns. My even darker grandmother got sunburns. My Black friends get sunburns. I am not sure that you are correctly correlating your experience with actual facts about the sunburn resistance offered by melanin.
Unrelated, he also swore he couldn't get poison ivy, until he literally rolled in it to prove it to me. I found the aftermath more amusing than he did.
https://www.fs.usda.gov/t-d/pubs/htmlpubs/htm07672313/index....
That's like a resident of Porto saying most people don't get frostbite walking around outside in winter...
Naturally darker skin does not automatically provide sunburn protection. It is spending time in the sun that adds the missing part that provide that protection. I don't know how this differs from dark skin, but I've seen it myself.
Note that my claims are only about sunburn. The article/topic is skin cancer which may well have different factors from sunburn.
San Francisco is at a southern European latitude. It’s a lot worse in the tropics.