Right, so with Amazon you have one truck visiting 100 addresses every day for two weeks (because people are buying 2-3 items per order). With Costco you have 100 people each driving to Costco once, on a single day.
From a cars-on-the-road and fuel expenditure perspective, the latter sounds better.
If Amazon customers ordered like Costco shoppers, the Amazon model might very well be better. But they don't, so it isn't.
In reality, you get both. People don’t shop at Costco OR Amazon. People primarily go to Costco for food (then stumble on everything else), Amazon has struggled over and over to get their grocery business to catch on. They’re just the best source of the everything else part.
These are only comparable in an academic business model comparison, in reality, these are different retailers selling different things and consumers behave differently depending on context of what they’re buying. A lot of people want low cost on food, meanwhile, they’ll spend superficially on disposable plastic junk with very little practical value. I’m taking about the American consumer specifically when I say everyone.