I have seen here on stack exchange (in the comments) a proof along the lines of:
$X\backslash x$ is disconnected for all $x\in X$ but $Y\backslash y$ is connected for some $y\in Y$. Therefore $X$ and $Y$ are not homeomorphic.
Explicitly, how does this show the nonexistence of a homeomorphism between $X$ and $Y$?
A homeomorphism is a bijective continuous function with continuous inverse.
A continuous function's inverse maps open sets to open sets.
A connected space is the union of disjoint open sets.
Prior attempts: Write out the definitions, then ... ?
Here explicitly:
Let $(X,\tau_X),(Y,\tau_Y)$ be the topological spaces $X,Y$ with their considered topologies $\tau_X,\tau_Y$.
Assume there is a homeomorphism $h: (X,\tau_X)\rightarrow(Y,\tau_Y)$, while $Y\setminus \{y\}$ is connected but $X\setminus \{x\}$ is disconneted with $x = h^{-1}(y)$.
$X\setminus \{x\}$ disconnected means you can split
Hence, $Y\setminus \{y\}$ is now disconnected, which is a contradiction to the assumption that it is not.