A $20 something you are about to throw away is the perfect thing to play games with.
Also, many dishwashers have a garbage disposal which isn’t inside the water and may fail if the cord gets into it. Not likely to happen, but enough people try it and someone may directly get an electrical fire while the dishwasher is running.