Re: NEC Question
Being from Canada I can't comment on NEC requirements ---- however ---
inspectors don't like obstructions impeding panels though they will tolerate easily moveable objects.
The washer is an obstruction --- you have to ask yourself is it easily moveable?
The washer chassis is metal and grounded. If you or someone else is working on the panel you are likely touching the washer's chassis and there happens to be a ground fault you can be electrocuted.
Washing machine = water lines
It wouldn't be a good thing if a hose were to spring a leak and spray water up into the panel.
Common sense should also come into play here --- in my opinion I wouldn't locate the washer in close proximity to the electrical panel.
"" an ounce of perception -- a pound of obscure "