The Bob Lee comparison doesn't really hold up. The "random street crime" narrative there was driven primarily by right-wing tech executives on social media - Musk, Sacks, etc. - not by news outlets making factual claims. Fox amplified the SF crime angle but wasn't naming suspects (and I put Fox in it own category anyway, based on its track record).
Meanwhile, actual newsrooms did reasonable work: the SF Standard put nine reporters on it and ultimately broke the real story. Other local outlets pushed back on whether SF crime was as "horrific" as tech execs claimed.
Most importantly: speculating about the type of crime (random vs. targeted) isn't defamation. Naming a specific living person as a killer is. That's a categorically different level of legal exposure, which is why outlets don't do it unless they're confident in their sourcing. If this kind of reckless misattribution happened as often as people here seem to imply, defamation lawyers would be a lot busier and these outlets would be out of business.