One thing to keep in mind: a lot of the die real estate in modern processors is spent on doing tasks other than calculating hashes (a lot of it is caches
https://www.servethehome.com/amd-epyc-7000-series-architectu... ).
Someone using an FPGA or ASIC can dedicate almost all of the die to creating lots of SHA-256 units.