Right, WebP was almost certainly a mistake in hindsight. Whatever advantages it had weren't worth a decade of ecosystem fragmentation. Isn't learning from mistakes and not repeating them a good thing?
I don't think AVIF is a good example of this though. All major browser makers were members of the consortium that created AVIF.