I replaced both.
My wife thought she would be getting a new washer. I don't mind spending the money but in my opinion the new appliances have way too many electronic parts and they usually are the first parts to fail(based on stories of owners of the newer appliances)