> Specifically when it comes to Amazon, because Amazon really has razor thin margins in its retail sector
What do you consider thin margins? Their overall margins are better than Walmart's.
Amazon: 65_932_000 / 177_866_000 = 37% [1]
Walmart: 126_947_000 / 500_343_000 = 25% [2]