Compare the two surplus cases:
Grain: 100 measured units contracted, 110 available → 10 additional units remain the seller’s.
Cloth: a whole identified cloth bought for 10 dirhams, described as 10 cubits but found to be 12 → the entire cloth belongs to the buyer.
These rulings are not contradictory. What exactly was sold differs: separate measurable units in one case, an identified article with a described attribute in the other.