I'm not a corporate tax expert, but I know that corporate taxes are very complicated and there's usually an excellent, justifiable reason for the items that commonly get labeled as "loopholes." Carry-over losses are a good example.
More generally, though, this kind of analysis misses the point. "Corporations" don't pay taxes regardless -- their workers (lower wages), stockholders (lower returns), suppliers (lower prices), and consumers (higher prices) do. In principle, every dollar of corporate income tax is paid by some combination of stakeholders to varying degrees. In principle, corporate income tax that isn't collected just gets passed on to those stakeholders, who in turn pay income taxes, capital gains taxes, etc. It's admittedly more complicated than I'm making it sound like, but the idea that Amazon literally generates zero tax revenue is kind of silly.