Amazon was never a profit machine. I do think that's part of the core business, re-invest everything and more... and they turned into a giant comparable to Walmart.
It's not really the same thing. Amazon don't turn a profit because they intentionally re-invest they money they would make into areas that they think will make them money in future. (Once or twice they've screwed this up and accidentally ended up making a profit.) Tesla don't turn a profit because they're making and selling cars at prices below their total costs.