The tax consequences of the sale of a business are complex, and strategizing to avoid one tax type may lead to unanticipated tax in another form.