Amazon is a great company, its leadership is smart, risk taking, knows how to execute well, etc. But I do think they gamed the system in that in their first ~15 years they never reported a profit (I am generalizing here). So they were able to subsidize and bootstrap themselves into a big company while paying no taxes as any normal company would have needed to become profitable or disappear in the interim. They plowed those savings back to into building up their business. For example leveraging the internal technology they built to quickly scale up their eCommerce website as AWS. In the early years of the company Bezo would state over and over that Amazon should not be profitable, that growth was of upmost importance.
I don't know much about corporate accounting, but I recall some criticism of how they structured their different businesses in a way (one business unit subsidizing the other) that was not legal but they were not called out for it by the IRS. I believe free markets are the best economic system, but to the extent there are corporate taxes maybe there needs to be a different accounting of them, perhaps not just on a year-by-year basis.
Example of their anti-competitive practice that came up in the hearing last week (this topic of diapers.com might have already been old news):
https://arstechnica.com/tech-policy...lan-to-crush-a-startup-rival-with-price-cuts/