Could Magneto defeat the Flash?

Yes, quite easily actually. If you really put both of these characters