AFAIK is HEIF more like the container and AVIF is AV1 as a single image, like a AV1 video can be used in mkv/webm or mp4 container...