refactor: Remove not needed std::max
Summary:
This is a partial backport of core#24697
https://github.com/bitcoin/bitcoin/pull/24697/commits/fa9284c3e9acec4b44b2560256f27b3d78c753e2
Depends on D15091
Test Plan: ninja all check-all
Reviewers: #bitcoin_abc, Fabien
Reviewed By: #bitcoin_abc, Fabien
Differential Revision: https://reviews.bitcoinabc.org/D15093