Strictly talking about on board product, I think a high majority of people here would agree that LH has a better F product. According to United.com, only 1/4 LHR-IAD flights has the new F product.
Depending on routing, price, times, etc. (which OP has not mentioned) UA might have advantages, but without more information LH is the way to go.