My understanding is that amazon was basically cash flow positive, but ran GAAP losses and never really "struggled" financially.
Whereas Tesla does indeed have some systemic financial issues.
In other words Amazon could have been "profitable" on a GAAP accounting basis fairly early on, but Tesla would struggle to do that.