for documentation purposes, I now fixed the issue for my systems by force-removing the old package first with dpkg and then installing its replacements with markauto:
sudo dpkg --remove --force-depends libilmbase-dev sudo aptitude install lib{imath,openexr}-dev+M # or apt install --mark-auto lib{imath,openexr}-dev