I think any pistol should work fine for a long time if exposed to salt water so long as it's maintained properly. Particularly if it's made mostly of stainless or stainless and plastic.
I think many pistols will work just fine if exposed to some sand ingestion so long as the sand is dry
I don't think there are too many pistols that will work semi reliably if they ingest significant quantities of wet sand.