For me, the answer to this question is driven by how much time you have. If you are short on time then flying between Los Angeles and San Francisco is the best option. If you have some time I would recommend you use it to drive on one of the most beautiful roads in the world.