lost*in*cyberspace: OP is travelling OS over the pond, so that would be terminal A.
If flat seats are available on both flights, then I would go with IAD. EWR's service is less good, the airport tends to have issues more readily, and if you are travelling soon keep in mind that New York can sometimes be snowed in (not often, but it can happen more than in IAD).