“All it takes is one angry family member and the property could be forced into a sale - and then the family has to move both or let the new owner deal with it.”
You just write in the offer to buy a condition to move the graves at the cost of the seller. If they don’t do it, then you don’t buy the property. Simple.
Or the sellers just let it go on a pie crust promise.