Assume that $M$ is a compact smooth manifold with positive dimension. We have two ways of embedding $M$ into its product with itself. Way I: $ i_1(m) = (m, m)$ and Way II: $i_2(m) = (a, m)$, where $a \in M$. Show that those two maps cannot be homotopic.
If $i_1$ and $i_2$ are homotopic, then I claim $M$ is null homotopic because if $\pi_1 \circ i_1 = id$ and $\pi_1 \circ i_1$ is a constant map. Then it boils down to showing that $M$ cannot be null homotopic. If $M$ is orientable, then its top cohomology is $\mathbb R$, so it cannot be null homotopoic. What if $M$ is not orientable?