Actually show that $(1\, 2)$ doesn't commute with any member of $S_3$ except identity and itself. Then you prove indirectly that for every non-identity element there exist another element with which it doesn't commute. Can you see why?
Suppose $f \in S_3$ and $f\neq e$ and $f\neq (1\, 2)$ then take $g=(1\, 2)$.
If $f = (1\, 2)$ then take any other non-identity element as $g$ as you have shown $(1\, 2)$ doesn't commute with any member of $S_3$ except identity and itself so you are done.
EDITED ON 21-11-2020: Another answer which is a proof.
Theorem: $\forall n\geq 3, Z(S_n)={e}$, where $Z(G)$ is center of $G$ and $e$ is identity.
That means identity is the only element that commutes with every elemnt of $S_n\forall n\geq 3$.(From now on whenever I say $S_n$, just assume $n\geq 3$).
In other words for every non-identity element $f\in S_n$ there exists another non-identity element $g\in S_n$ s.t. $fg\neq gf$.
Proof:-
First observe that to prove $fg=gf$, we need to show that $fg(x)=gf(x)\forall x\in \{1,2,3,\cdots ,n\}$.
But to prove $fg\neq gf$, we need to show that $\exists x\in \{1,2,3,\cdots ,n\}\text{s.t.} fg(x)\neq gf(x)$.
Let $a,b,c\in \{1,2,3,\cdots ,n\}$.
Let an arbitrary $f\neq e\in S_n$ s.t. $f(a)=b$, Now choose $g=(b,c)$ where $c\neq f(b)$. Observe that this is possible only because $n\neq 3$.
Let me give you an example suppose in $S_3$, let $f(1)=3$ now $f(3)=1\text{ or }2$ say $1$, >then choose $g=(3,2)$.
Now, observe $$fg(a)=f(g(a))=f(a)=b\\gf(a)=g(f(a))=g(b)=c$$
Hence $fg\neq gf.$. So for every non-identity element $f\in S_n$ there exist another non-identity element $g\in S_n$ s.t. $fg\neq gf$.$\qquad \square$