[mcs] Cleanup tie-breaking rules of better function member. Fixes #17755