If the option has any time premium remaining, it tends to make more sense to sell the option rather than to exercise (salvages time premium and incurs fewer B/A spreads and commissions)
If an option is ITM and the bid is less than parity, it makes sense to exercise and close if the haircut on...