What happened Shares of General Motors (NYSE: GM) didn't beat the market in 2020, but they did climb by a respectable 15.2%, according to data provided by S&P Global Market Intelligence, as auto sales and net income held up relatively well during the pandemic. Image source: Getty Images. So what GM reported hefty profits despite the pandemic. But auto sales did drop as people drove significantly less and felt less need for new vehicles. GM Revenue (TTM) data by YCharts But there was positive news on the electric vehicle and autonomous driving fronts. GM has announced plans to invest more than $27 billion in its electric and autonomous vehicle programs over the next five years, and is introducing new models like the Mustang Mach-E and GMC Hummer EV. Also, in December, its Cruise subsidiary began testing fully autonomous vehicles on the road in California without human monitors behind the wheel. California gave permission for the company to stop using backup drivers in its test vehicles in October; more states are likely to follow suit in 2021. Self-driving technology could be revolutionary, and with Cruise, GM owns a valuable asset. Now what GM's performance in 2020 shows a lot of what investors can expect from it in the future. The company's traditional auto business will churn out profits, primarily from big trucks and SUVs. Meanwhile, it will introduce more electric vehicles to try to build a footprint in that growing segment of the market. Where I really see a bright future is in Cruise, which could disrupt transportation as we know it. The company is a leader in autonomous technology, but it's also building a ride-sharing service that could make car ownership a thing of the past. That's why this is one of my top stocks for 2021, even after the gains we saw in 2020. 10 stocks we like better than General MotorsWhen investing geniuses David and Tom Gardner have a stock tip, it can pay to listen. After all, the newsletter they have run for over a decade, Motley Fool Stock Advisor, has tripled the market.* David and Tom just revealed what they believe are the ten best stocks for investors to buy right now... and General Motors wasn't one of them! That's right -- they think these 10 stocks are even better buys. See the 10 stocks *Stock Advisor returns as of November 20, 2020 Travis Hoium owns shares of General Motors. The Motley Fool has no position in any of the stocks mentioned. The Motley Fool has a disclosure policy.Source