Neonchameleon
Legend
And if you view it as this then there is still in my experience a far greater ability to explore and make meaningful choices in an off the cuff Apocalypse World setting than literally any D&D sandbox I have ever played in, no matter how much work the DM put in.If you view agency as your ability to control the setting, then sure. But like others here, we are viewing agency as the freedom to explore the world and make meaningful choices in that world. Different points of view.
When it comes to making meaningful choices Apocalypse World leaves D&D so far in the dust it's not even funny. Every roll contains multiple meaningful choices; what you do, how you do it, and frequently with how much risk. Meanwhile a (non-4e) D&D martial character in combat is frequently short of them; their attacks are roughly the same and disengaging to run away is a bad choice so you swing at the target in reach (a just about meaningful choice) and automatically make a damage roll.
As for exploring the setting, the professions of D&D characters are all different types of adventurer. Apocalypse World gives you social connections to the town you find yourself in and collections of NPCs while the PCs have different power relations with them (rather than being outsiders) so you again explore frequently in much more detail.