The always-ongoing efforts to create productive office spaces do not justify RTO. It's unfortunate if an office design is commissioned that is later (or immediately) not fully utilized, but implying that this justifies RTO is purely circular reasoning.
Worse than that: Implying that not wanting to come into the office is tantamount to not wanting to do "good work" is antagonistic and disrespectful. I would never work for somebody who treated humans like that.
Ultimately you are committing the same fallacy as many other proponents of universal RTO - that every person is the same, or that the people who do better working from home hurt the people who do better in the office (but not the other way around, somehow). They are not mutually exclusive.
Also, snacks and coffee do not "keep people boosted". They are nice. What keeps people boosted is motivation, productivity, the qualitative nature of the things they are creating, responsibility, communication, quality of life, using the bathroom in peace, salary, health, leadership that gives a shit, private space to work, a comfortable environment (clothes, temperature, noise), not being miserable for the potential benefit of the vertical, and not giving your free time and mental energy to a commute.
NONE of this indicates, implies, or necessitates an unwillingness to "do good work" or a lack of commitment. I express these feelings as strongly as I feel them, and yet I am also obsessive about being productive, engaging, educational, having great teamwork, and creating value. I am no quiet-quitter nor cynic when it comes to my work.