I am not sure where you get your data but Tesla has been profitable for a long long time, and in 2022 surpassed GM in NET profit by 4 billion USD. (Just because they dump all their profits into R&D has nothing to do with the fact that they rake in a lot of cash.) GM is a dying company, and is irrelevant at this point in time and will be non existent in the long run imo.
They cracked half a million sales in 2020. That's not a small number if you consider in 2020 they were making well over 6000$ per car on average. Compare to toyota whose profit margin is 1500$ on average, Toyota would need to sell 2 million cars to match. Sure, they sell 10 million cars globally every year, but that means toyota only makes 5x the profits that Tesla makes yet it sells 20x the cars. You also have to consider that they have one of the highest growing net profits in the world across ALL INDUSTRIES. This is an auto maker, not a software tech company or a chip maker (who usually have 1000% mark ups on everything).
So you are flat out wrong...
Profit per car is what is scalable. The bigger the scale the BETTER the profit margin should be as cost goes down. So it will only improve while legacy auto makers are tapped out, and unless they have enormous amounts of cash on their balance sheets to bank roll them into the next decade...companies like GM will be dead. How many times has GM been bailed out?
GM made 6 million cars vs Tesla's 500,000 and yet made less money in 2022....sad.