The sale is governed by the terms of the agreement. If the agreement allows you to refuse to sell to buyer A and instead sell to buyer B, only paying a penalty to buyer A, that is permissible. On the other hand, if the contract does not allow that, then you would have to sell to buyer A. To understand exactly what your rights and obligations are, you need to consult with an attorney who can review the contract in detail with yo.