This doesn't work if the shares have low-to-zero liquidity, similar to housing or land. In environments where it can take days to find a buyer, the price slippage could be more than the tax itself.