> This is correct, but it doesn't explain why Amazon would have a 2x market cap over Walmart when they both roughly make the same revenue
Because Amazon and Walmart are two different companies with very different product offerings.
Retail can only grow so far. AWS continues to grow at a relatively incredible rate compared to Walmart's business.