They occur at different layers:
> OpenZFS native encryption splits the difference: it operates atop the normal ZFS storage layers and therefore doesn't nerf ZFS' own integrity guarantees. But it also doesn't interfere with ZFS compression—data is compressed prior to being saved to an encrypted dataset or zvol.
* https://arstechnica.com/gadgets/2021/06/a-quick-start-guide-...