A while ago I was thinking about how to improve the darktable auto min / max color pickers, so they wouldn’t always pick an outlier pixel, mainly because I was having trouble with the negadoctor pickers (More robust color picker in Darktable). Probably the simplest solution would be to have the picker pick the min/max from a blurred version of the preview image, maybe with something like a median filter applied.