The exchangedata() system call has never been supported on APFS
introduced in macOS 10.13 (2017, unsupported since late 2020) and since
macOS 10.14 (2018, unsupported since mid 2021) all HFS+ drives are
converted to APFS. As far as I can find you can't use HFS+ drives with
current versions of macOS: