Having done this route (and the vice-versa), I much prefer transiting in ORD to IAD. Personally, I also prefer the longer flight NRT-ORD with just a short hop at the end to the mid-length NRT-SFO (or LAX) then SFO-ORD - the flight feels faster to me when I've "nested" into my seat for the long term.