With disagreement, first seek a common basis.
If the community of heirs cannot agree on keeping or selling, a common valuation helps first. On this basis a buy-out of one heir or a sale can be compared objectively. Only where no agreement is reached does a court-ordered division come into consideration.
An early clarification of the options avoids the property remaining unused in joint ownership for years.