I go into the office maybe once a month just to make sure my desk hasn't been raided or reassigned, and to socialise a bit.
Otherwise, WFH is miles better, especially as a parent. I spend far less time on commute bullshit and far more time on things that actually matter, like being with the kids. I'm easily more productive at home, and a lot of the time the team and I end up starting early or working late into the night.
The irony is that while WFH improves life in many ways, it can also blur the work–life boundary. We've pushed a shitload more commits than we ever did in the office, often at completely unhinged hours, and it became genuinely hard to switch off. I had my first-ever burnout episode while WFH from burning the midnight oil for too long.
People who slack off at home will slack off in the office too, except in the office they also impose on everyone else trying to get work done. This is fundamentally a management issue, not a location issue.
Here in Australia, the Business Council keeps pushing for a return to the office, mostly because their commercial landlord mates want to protect their lease income, while cost-of-living pressures, transport congestion, and the housing mess get worse by the day. Sorry-not-sorry, but WFH just generally makes more sense for everyone - and it's only ever ruined by the same retards who would slack off anywhere.