Then you are accepting that what drags your productivity down is commuting, not actually working from an office. Remote working may be a solution to your problem but comes with associated costs you may be not counting (misunderstandings, wrong team member mental models, alignment calls, longer on boarding times, suboptimal knowledge sharing, less serendipity/synergies in general). Another solution to your commuting problem is find a job that is closer to your place