Mass transit eliminates the energy problem. Two far away cities connected to each other via high-speed rail might as well be next-door-neighbors.
A 40 minute walk and a 40 minute train ride are both reasonable commutes, but added together are nightmarish. I’ve tried.