I think gravity is to weak a force to be THE force that holds or creates or "makes rigid" matter from energy.
It could be however, that gravity is some sort of by-product of the force that causes energy to coalesce into matter. In the way that magnatism is a by-product of flowing electrons.
