It takes some nonzero amount of time to destroy the Earth, though; the question would be if Flash could take out Superman faster than Superman would be able to nullify Flash through something like that. If Superman can keep Flash from using his speed then he'd win, but could he be taken out before doing that?