Fix ~50 invalidations stemming from `modules_to_be_loaded` (#41878)
ChainRulesCore defines `==(a, b::AbstractThunk)` and its converse,
and these end up invaliding parts of the REPL (including `eval_user_input`)
via inference failures in `modules_to_be_loaded`.
Co-authored by: Jameson Nash <vtjnash@gmail.com>