The companies mandating RTO seem to be in the few thousand employees and up range. My experience is that at those sizes a developer spends most of their time figuring out what and how to code, which is mostly done in meetings. Writing code in such a setup is a relatively small part of the work. Developer effectiveness doesn't have that large of an impact on their success, whereas organizational skills and leadership do.