Highway 101 does NOT directly connect San Francisco and Los Angeles.
US-101 runs north–south along the coast from Leggett (Mendocino County) through San Francisco, San Jose, Salinas, San Luis Obispo, Santa Barbara, and ends in Los Angeles. But between San Francisco and LA, it goes inland through the Salinas Valley—not the scenic coast.
The iconic coastal route is State Route 1 (Pacific Coast Highway):
For speed: I-5 (inland) — ~380 mi, 5.5–6 hrs. For beauty: Highway 1.