Unless you're getting paid for your commute, you're just giving your employer free productivity. I would recommend doing literally anything else with that time. Read a book, maybe.
If you can't do your job in your 8 hours then you're either not good enough or the requirements are too much and the company should change processes and hire.
Right, I'm not saying anyone should actually be in the office 40 hours a week that sounds terrible. And even with all the RTO of the last couple years that doesn't seem to be expected many places.