What you are missing is the meaning of $[T(g)]^{-1}$. Indeed in what you wrote you say that :
$$[T(g)]^{-1}\text{ is the function from }G\text{ to } G \text{ sending } x\in G \text{ to } [T(g)(x)]^{-1}=(gx)^{-1}=x^{-1}g^{-1} $$
But $[T(g)]^{-1}$ does not mean this, it is the inverse mapping of $T(g)$. By definition (if it exists) it sends $T(g)(x)$ on $x$ for any $x\in G$.
Now $T(g)^{-1}(T(g)(y))=y$ so that $T(g)^{-1}(g.y)=y$ this is true for any $y\in G$, in particular if $y=g^{-1}.x$ :
$$g^{-1}.x=T(g)^{-1}(g.(g^{-1}.x))=T(g)^{-1}((gg^{-1}).x)=T(g)^{-1}(x)$$
If it exists then $T(g)^{-1}(x)=g^{-1}.x$. There is no choice. One can see that this is indeed the inverse function for $T(g)$.