Tesla NASDAQ:TSLA is heading into its July 22 earnings report after reporting stronger-than-expected second-quarter vehicle deliveries.

Tesla delivered a record 480,126 vehicles during the second quarter, exceeding Wall Street expectations by about 18%. Deliveries also topped production, suggesting inventory levels improved ahead of the earnings release.

Investors are expected to focus on Tesla's gross margin, which could provide a clearer view of profitability after recent price reductions and incentives. Analysts have cited margins as a key factor that may influence market reaction despite the delivery beat.

Beyond its automotive business, Tesla continues expanding its robotaxi service, energy storage operations, Full Self-Driving technology and Optimus humanoid robot program, areas that investors increasingly view as longer-term growth drivers.

Wall Street remains divided on the stock. While some analysts continue to emphasize Tesla's artificial intelligence and robotics initiatives, others have maintained more cautious ratings.

Tesla shares fell about 1.5% on Thursday, while the company is scheduled to report second-quarter results on July 22.