My own test comparisons are attached. Conversion was done from 3000×3000 to 2000×2000 using Lanczos2, with and without Gamma Correction: The original figure can be found here.
Reference to the original bug report/discussion: 0.92: Downscaling with gamma correction posterizes dark areas
As pointed out in that thread, the problem is caused by low internal processing depth:
Suggestiondamian101 wrote: Thu Aug 29, 2024 11:25 am Internal bit depth needs to be higher, then this won't happen. Currently, it seems to be 8 bits per channel, which is a joke, awful banding everywhere in dark gradients. Linear light needs to be processed at 16 bits per channel (sufficient for this) or higher internally.
Please consider increasing the internal processing depth for gamma-corrected resizing. Using at least 16 bits per channel for calculations should eliminate most of the banding and preserve image quality much better.