The defocus node + z-depth pass works a bit differently for .exr – which I failed to cover in the depth of field lesson 😞
With .exr the User Z-Buffer option is disabled because that’s only relevant to the raw render data from a 3D scene, not the data converted to .exr. I just tested that it still works, so here’s a screenshot of a simple setup:
