This isn't true. While dealers are slimy and have miles to go, there's still a consumer need to (a) a place to see/touch/drive a vehicle and (b) go in for service and repairs. You can't simply fix this with manufacturer-owned stores because the capital cost is so high. Major manufacturers like Ford and GM have over 3,000 dealers in the US. Maintaining that kind of network is something that dealers can't afford. Tesla only has a few dozen service centers right now, and they're centered around high-population urban areas with wealthy customers.
I'd like to see franchise laws change to encourage competition in the space, but I think we still need dealers in some form or another.