The thing that Tesla is producing, however, is really expensive to build right now. The cost curves are great for it to come down, but until they do they are in the ironic business of selling expensive things with thin margins.
GM would find it harder than it thinks to compete against Tesla with an equivalent product. Just as Tesla is running into challenges scaling up production.
They don't have an automatic mark-up, but car dealers also operate on razor thin margins (the real money is in service and trade ins). However dealers pay their own rent and even spend money advertising. Tesla is on the hook for all of its dealerships, a significant cost that its competitors don't have. In the end I don't think it's such a game changer. It makes sense for Tesla, but doesn't magically make things cheaper.
If GM decided to do this, it would have many advantages over Tesla: a huge dealership and service network, lots of suppliers, easy financing, and all of the other perks you get when you buy a "normal" car from an established company.