Not a relative analogy, I don't think; A beach would be the last place to look for a natural diamond.
Might be an OK place to look for a lost diamond that fell off a wedding ring though.
300,000,000 grains of sand isn't much more than a bucketful anyway.
But you could find a diamond jewel in a bucket of sand, and that could represent earth. We have found an earthlike planet! In fact, it's right here.