avif is better than it in almost all ways, and jpex xl is even better than that (but not about gifs i think)
webp is essentially a webm file (which is mkv with codec restrictions(vp8/9 and ogg vorbis or opus))
avif is av1 encoded files in a webp like container (but not webm afaik)
jpeg xl is a format made specifically for images