Being somewhat familiar with both, there are probably areas of both cities that are more and less safe. Without looking at numbers, there are probably areas of NYC that I'd be less inclined to wander into than areas of London. Though, as you say, bias. There are areas of London that were sketchy a few decades back that are pretty gentrified today, especially in East London.