perf: prove `match` equations as instances of the congruence equations (#16502)

This PR makes equation generation faster for definitions by `match` with
many literal alternatives (#16313). Generating the equations of a
`String → Nat` function with 128 literal alternatives and a catch-all is
about 20% faster.

A match equation `f.match_1.eq_i` and its congruence equation
`f.match_1.congr_eq_i` were proved independently by the same procedure,
and for literal patterns each proof refutes every preceding alternative.
The congruence equation is more general, so a match equation that is not
proved by `rfl` is now `eq_of_heq (congr_eq_i .. rfl .. hs)`, and the
proof is built and checked by the kernel once. The congruence equations
are now also proved by reflexivity when possible. Before, the
reflexivity attempt used `MVarId.refl`, which always fails on their
`HEq` statements.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
6 files changed