Machinery generally doesn't "like" sand, or any other form of fine grit, debris and particulate contaminants.
Yes, I know some firearm manufacturer advertising includes such extreme or abusive conditions in their promotional materials, ads, etc. It is what it is.
Then there's the wealth of personal experience and opinion to be found among online internet firearm forums.
Me? I've long since stopped being surprised when a pistol of some popular make/model ... like one of them often portrayed as working after "torture tests" involving cubic yards of fine sand
... experiences stoppages after something as simple as having one of the magazines dropped onto loose sand and then reloaded for continued use in some qual course-of-fire. I'm even less surprised when someone drops their pistol onto a loose sand range and tries to continue shooting it, only to have it seize and then require bench time to get it apart.
I've listened to another armorer who had some experience using a few different makes/models of pistols overseas in one of the sandy environments where our military forces have been operating. I was unsurprised when he told me how some of the more popular (with firearms enthusiasts) pistol could exhibit functioning issues due to exposure to sand in as little as a single day.
Some designs might be less intolerant than some others, granted.
Revolvers? The tight tolerances and moving parts don't often seem to benefit from sand & grit getting inside them. Revolvers are also generally harder to maintain and clean (from an armorer's perspective) in a hostile environment which could include fine sand, grit, silt and such contaminants.
Both pistols and revolvers have been used in such environments for as long as they've been around, though.
The times when I've felt it was prudent and reasonable to take one of my guns to the beach on my own time, I used a carry method which prevented sand from getting to the gun (typically one of my small revolvers). (This presumes it's lawful and permissible to take a firearm onto a specific beach!)
Those times when I had to operate in a sandy environment while wearing an issued revolver or pistol? I took care not to let my weapon come into contact with the sand (or dirt), but if it did come into contact, or if it was exposed to wind blown sand & dirt, I inspected it at the earliest time available, cleaning it as may be necessary.
As an armorer, I've had to detail strip and clean out weapons that have been dropped into loose sand. Hard packed dirt hasn't usually been as much of a problem, although having a weapon dropped into a bay, river, creek or other running or standing water (where dirt & soil may be present) might require armorer level cleaning and decontamination before the weapon is returned to service. Things can happen.
Frequent cleaning of firearms exposed to adverse conditions, such as abusive and hostile environmental conditions, might reasonably require more frequent inspection & cleaning. Depending on the conditions and circumstances, such exposure might require the attention of an armorer or gunsmith, at times, too.
There's a saying in the risk management field ... "Predictable is Preventable".
If you end up with wet sand in your J-frame, you might ask yourself if it was really necessary to have it in those conditions ...