SERVER-137473ClosedFixed

Delete buffered result documents from rejected plans after picking winning plan

When we pick the winning plan in the multiplanner, we don't free the buffered result documents from the rejected plans (see [here|https://github.com/mongodb/mongo/blob/4393af13a33ac4dd9ab9770ef1278b2774dc5cf0/src/mongo/db/exec/classic/multi_plan.cpp#L618-L650], we just move the rejected plans into a different vector). We should free them since we are no longer using them. We shouldn't remove the results from a backup plan if one exists since we might have to use it.

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc1025
Components
Server components related to this issue

No components specified.

Labels
Tags and classification
qo-triage-week