You should consider all IDs as equivalent. They come in /en, /m, /g, /wikipedia/en, /wikipedia/en_id, and a large variety of other forms.
In an ideal world, I suspect Google would rather not have the /g IDs exposed, but they tend to leak out. They represent entities in the internal Google Knowledge Graph which don't have corresponding external IDs/topics. The majority of them, in my experience, represent things from the /notable* range where Google has notable topics that they've created from a variety of other sources other than Freebase (e.g. search queries, other licensed databases, etc).
The entities represented by /g identifiers are actually less than an /type/object, but are probably represented that way in the API/downloads because that's the closest equivalent to "nothing." They probably should just be considered naked identifiers with no type or other information other than their label/name. I'd store them though, they may magically resolve to something useful in the future (not a prediction, just a general philosophy that one should retain as much information as possible for reconciliation purposes).