Walmart and their acquired "Jet' could. As a matter of fact, that's why they acquired Jet. To be more specific they acquired Jet's CEO so that he could fix Walmart's ecomm.
Walmart had all chance of doing so a few years ago, but now they have to play catch-up. Most likely they won't be able to though (it's too big of a gap now).
Walmart has distribution centers, logistics, and store chains that cover 90% of US population capable of same-day delivery (including Latam and a bunch of other countries) to which Amazon's logistics is no match (at least wasn't just a few years ago). If they did the right thing the right way earlier in the game, they were capable of doing 1-day or same-day free delivery. If they also started to pay more attention to their "shitty" ecomm earlier (combined with delivery), this would have been game over for Amazon (or very tough at least).
This is back in the days when Amazon Prime and free 2-day delivery just started.
They also can and in fact do control the products costs. A lot of local and non-local manufacturers work solely to supply Walmart either under Walmart's own brand(s) or through long-term contracts with Walmart (if Walmart is "kind enough" to put manufacturer's products on the store shelves). There are even whole factories that work to supply only Walmart.
It still holds true (even in the modern e-commerce world) that if Walmart decides to remove your product from their shelves for whatever reason, this would be a HUGE hit to your business (in some cases even the end of it).
Probably too late for Walmart to be able to bring down Amazon now...