I would do:
UA 837
From San Francisco CA US (SFO) Terminal I
Departure Time 1117
To Tokyo Narita JP (NRT) Terminal 1
Arrival Time 1530
Duration 11h13m
Meal LL
Aircraft Type 744
NH 2179
From Tokyo Narita JP (NRT) Terminal 1
Departure Time 1755
To Osaka Itami JP (ITM) Terminal
Arrival Time 1915
Duration 1h20m
Aircraft Type 773
That way you get to have lie-flats, have a nosh/shower in NRT, then get to try the domestic-configuration ANA 777-300 and get to Itami, which is much closer to Osaka proper than Kansai.