chore: Remove hash comparison code (#6758)
### Description
We no longer need this since we're treating the Rust code as the correct
version. This also opens us up to changes like making root internal
dependencies affect the global hash.
### Testing Instructions
<!--
Give a quick description of steps to test your changes.
-->
Closes TURBO-1881