all of cryptocurrency relies on sha256 the fact that the space is huge, and just ignores collisions. seems to work fine.
Factually, X != hash(X). Sometimes you can make the simplifying assumption that X == hash(X), but only in well-defined contexts, subject to proper risk analysis; never in general, or as a presumption of a system that needs to be correct.