I live in the peninsula and you would have to be my dream job to get me to drive to soma regularly.
I do it once a week and, starting driving at 7:05 AM from San Mateo, it takes until 8am or just before to get into soma. Leaving at 8-9 would take longer.
My company is in SoMa, and recruiting is not super easy, I'm confident if someone really wanted to work at Heap, they'd work in Daly City or Sunnyvale. Location has never been a great selling point.
Maybe there is a certain kind of candidate for whom not being in the city is a dealbreaker, but I'd like to see numbers.
That's not to say that this isn't a common and seemingly true myth of recruiting, but it would be interesting to be able to dispel or confirm it.