test,bench: validate `CheckTransaction`'s duplicate input detection in broader context
This PR follows up on #31682, isolating its testing and benchmarking improvements to focus on CheckTransaction
's duplicate input detection and performance in realistic contexts, avoiding the controversial consensus code change.
First commit adds tests to validate CheckTransaction
's ordering-based duplicate detection against the hash-based methods used elsewhere in the codebase.
Second commit replaces overly-specific microbenchmarks with ProcessTransactionBench
, which implicitly measures CheckTransaction
as part of the full validation pipeline.