If I want to make clear that one object is being affected by the gravity of another object, for example the Earth and the moon.
Would I say:
The moon has a gravity, just as all mass does.
or, would I say:
The moon has gravity, just as all mass does.
The moon, like all mass, has gravity.
might make it sound more natural.