The phenomenon of "nail houses" testifies against the notion that the Chinese government will expropriate whatever land it wants, although nail houses aren't graves. Graves are less of a concern, because the dead by law must be buried in public cemeteries: isolated rural burials are uncommon.
While the photos of nail houses tell a story of state-tolerated individual defiance, the reality is actually the opposite: https://researchonline.lse.ac.uk/id/eprint/6194/1/Driven_to_...
Nail houses always lose. They have their services and access cut-off by private developers without any recourse to the courts. The nail houses exist only for the duration of arbitration proceedings over compensation for the property. FMV value is usually determined by prices before the area was considered for development, which in poor areas is a pittance. But in arbitration the villagers are merely postponing the inevitable.
Also, IIRC, nail houses are rare as outside cities private ownership of property was not common, at least into the early 2000s. (Not sure how common it is now.) And they only became a thing circa 2004 when China amended their constitution to require legal process for expropriation, but that process provides much fewer protections than it does in, e.g., the US.