Fuck webp, use JPEG XL*. It supports lossless and lossy compression, and it’s compression is on par or better than webp. It also isn’t entirely designed by Google.
* With JPEG fallback. Google, being Google, blocked the addition of JXL decoding in Chrome and Android.
Sadly, yes. That’s why I mentioned the fallback to JPEG.