Assuming you are in first class, LAX is the far better option. You will have access in LAX to the International First Class Lounge in transit while in SFO you will be stuck in the RCC. Also, never a delay in takeoffs/landings due to fog and UA has its own dedicated immigrations center. LAX for sure.