Mark maximumBy/minimumBy as INLINE.
Fixes #22609 (closed).
The RHS of these functions is too large for them to get inlined. However without inlining we are not able to unpack the accumulator when the comparison function is known and has a wrapper.
So we simply mark them as INLINE.