Silence experimental::smartmatch warnings

We know smartmatch is experimental, and we accept the risk of
using it. This fixes spurious test failures like RT #84986.