Enter the gross proceeds amount (from W-2) as the "Cost or other basis" in the 1099-B interview. This will result in "zero" gain for the 1099-B transaction (or a small loss if there were sales charges).
The income attributed to the grant is included in Box 1 of the W-2, and is used to calculate the cost basis for the sale reported on the 1099-B.