>> What should we use instead?
> AVIF, JpegXL, maybe even WebP (lossless mode).
Definitely not lossless AVIF. It is less efficient than lossless WebP. WebP is supported everywhere, but is not much more efficient than optimized lossless PNG. Lossless JPEG XL has the best lossless compression but can't be used for web without fallbacks.
So, for offline archival: JPEG XL.
For web use without fallbacks: lossless WebP.
For web use with lossless WebP fallback: JPEG XL.