I have been stuck multiple times, always found a way out. The real key is having the sense to know when you're going to dig yourself in before it happens, stop, and figure out what to do next. Too many hypotheticals, but I would first drop that tire pressure really low and then look for something other than sand to put under those tires. Like seashells. Rocks. Wood. Floormats.
Not the same, but probably the worst for me. I got my CTS-V stuck in a parking lot near my house after a snow storm. It was parked there and I wasn't home, a foot was dropped and they were trying to plow the lot, mine was the only car in the lot. Under the snow was a layer of icy snow that the plow did not remove.
So here I am with low tread 285 series summer tires, enough off idle torque to pull a house, no salt on hand. And a slight grade. It pulled off the parking space but quickly stopped moving at all afterwards. I tried chiseling with my shovel turned upside down to get a clear patch under a tire (posi), but the height of the car and width of the tire made that a problem. Manual trans, I left the car in first gear. The tires were turning at idle. I got out and tried to push the car with the wheels spinning. No good, it's so slippery I could not push. Nothing in the trunk. I didn't want to ruin a floor mat. Tried several ideas. So I shut it off and walked home, I filled two five gallon buckets with scalding hot water and used it to clear a major tire path. Once that was done I was good to go.
The plow guys probably had a good laugh. I flew out of the parking lot sideways. I needed enough momentum to get up the road and around to my house.