In a way a dishwasher is storing energy in the form of clean dishes. Now instead of storing electricity to run the dishwasher whenever, you simply run the dishwasher when there's an electricity surplus
In particular, when the dishwasher's in the drying phase. Do you really care if the heating element turns off here and there at that time? Probably not.