Well, if you're slacking you can be fired, it doesn't matter if you work from home or from the office.
It would be great if it wasn't a war, just measure output or equivalent objective measures, but like religion (which wars have also been fought over), belief systems die hard. Mental models are rigid, emotional health is not always available to everyone, and so on. Loss of third spaces doesn't help, and your cohort of workers who demand in office time because that is the only socialization they get (or those who are fleeing their home life by going to work) also contribute to the friction.
Similarly someone who do work less at home typically is someone who can't be productive anyway, who sell his/her own time/presence but not much competence, again that's not always true but I'm pretty confident it's true in the mean.
However the real war is not about being remote or in person, but live in cities vs live outside, because with WFH as the way to work for all eligible jobs the big of real estate go bankrupts quickly, similarly many bit tech service player like Uber, Just Eat and so on, together with the cloud+mobile model. The rest is marginal.
Some do like the office because they have tough familiar situations and being "separated" for a significant part of the day means for them have a way to keep their family, witch sounds good for them, but IMVHO it's just a way to torture themselves more, some other do like the office simply because they can't afford a good home and they have a better setup in the office, again it's not a good thing to have IMVHO but all such examples are marginal.
WFH really doesn't change this that much. I remember offices where half the people were fucking around on Facebook at their office workstations, pretty much all day when they weren't in meetings. Or talking about Sportsball in the break room.
If you live on mountains you do not use Uber for trips, you do not buy ready made food via Just Eat and so on. Big of real estate discovering that no one want big glass coated, hyper energivore towers but nice homes and homes are private business there is no much slack to bribe the public and craft big money affairs, in the end spread people OWN something so the 2030 "you'll own nothing" agenda fails. The rent-all, all is a service model fails.
Those who really want the RTO do not care at all about the office, but the surrounding. If people realize that things will change faster.
Now if it's a war in the office, managers need to pick a side and the freedom is reduced even if you get some WFH days or whatever.
Full remote is a whole other can of worms.