(The most voted answer to) This question shows spaces of the same dimension can be homotopy equivalent but no homeomorphic. On the other hand "difference in dimension" is still a nice way to tell apart homotopies from homeomorphisms.
I'm not quite sure how to formulate my question precisely, but here goes:
What is the essence of the idea behind the counterexample in the first answer to the linked question? (Please don't just say $\mathsf{Y}$ is a deformation retract of $\mathsf{X}$.)
More generally, what kind of "topological differences" can homotopy equivalences ignore except dimension?
Update: In light of Stefan Hamcke's comment "I think most, if not all local properties can be ignored by homotopy equivalences", I think this is the statement I should try and understand. Thus, I am asking for as-detailed-as-possible (yet formal) explanations of this sentence. Furthermore, since homotopy equivalences ignore local properties, how do plain homotopies behave with them? I'm guessing the same is no longer true, but why?