My lecture notes state that for a set $S$, we have $|S \times S| = |S|$. Some reading on this topic here suggests that this requires the axiom of choice, which implies to me that the assumption of $S$ being infinite is necessary. This makes sense, as I can come up with a counterexample for finite $S$. If $S = \{1,2,3\}$, then $|S \times S| = 3 \cdot 3 = 9 > |S| = 3$.
Am I correct that $S$ must be infinite for this result to hold? Further, is the canonical proof an explicit bijection or using Shroder-Bernstein? Every method of trying to find a bijection led to problems with either injectivity or surjectivity.