Ironically, a properly sealed EV system would better deal with a flood. Combustion engines have issues due mostly to the air intake and exhaust.
AFAIK your best bet is a diesel with a snorkel, and hope things have dried off before you need to restart the engine.