From the tax perspective of the buyer, an asset sale allows for a step-up in the tax basis of the assets acquired. This often allows the buyer to increase their depreciation and amortization deductions in the future, which can result in lower tax bills.
The biggest difference is that an SPA is the sale of all shares, and an APA is the sale of selected assets. Therefore, they are both different transactions and have different procedures.