A lossy 24-bit color webp image (which is encoded with VP8's intra-frame compression) is likely to look better than a 8-bit color palette lossless gif.
Unless it's pixel art (lossy webp is chroma-subsampled). Another issue is that it often is a reencode from a gif, so it's strictly lossy if you don't use a lossless format for the reencode.
But this is in the context of what to use instead of gif. The point is, for many gifs (like say a short clip from a movie, or funny video) you can get a lossy webp that looks better than a gif, but and is smaller than an APNG.