Tesla likes to quote their gross margins because they look incredible at face value. However Tesla doesn't use a dealership model, so they have expenses for the sales process that other car manufacturers don't have. To get an apples-to-apples comparison with the margins of other car manufacturers you have to make adjustments like the ones I described earlier.
In most industries you're right but the autos have always included R&D in COGS instead of OpEx. Tesla is the only auto manufacturer who does it the other way.