My motivation was actually coming from :Change of Variables in Limits (Part 1)
and the counter example:
For $g(x)=x\sin(1/x)$, and $f(x)=\left\{\begin{aligned}&2,\quad x= 0\\&1,\quad \text{otherwise}\end{aligned}\right.$.
We have $\displaystyle \lim_{x\to 0}f(g(x))$ doesn't exist but $\displaystyle\lim_{y\to 0} f(y)=1$ so they are not equal.
but in the case of $\lim\limits_{x\to a}\dfrac{\sin(g(x))}{g(x)}$ where $\lim\limits_{x\to a}g(x)=0$ we always say this former limit is $1$.
If we can think the continuous extensions $\tilde f$ of the functions $f$ which has removable discontinuity at that point. I can show $$\lim_{x\to a}\tilde f(g(x))=\lim_{x\to 0}f(x)$$ where $\lim\limits_{x\to a}g(x)=0$.By taking limit inside using continuity of $\tilde f$. Of course $\lim\limits_{x\to 0} f(x)$ is assumed to exist (that's why it has only removable discontinuity).
In the case of $\;\tilde {\dfrac {\sin(x)}{x}}=\begin{cases}\dfrac {\sin(x)}{x}&\text{if}& x\neq 0\\ 1 &\text{if} &x=0\end{cases}$
However as you can see also from the very above link $\lim\limits_{x\to a}\tilde f(g(x))\neq\lim\limits_{x\to a}f(g(x))$ in general. So there might be a function $g$ that satisfies:
$\lim\limits_{x\to a}\dfrac{\sin(g(x))}{g(x)}\neq1=\lim\limits_{x\to 0}\dfrac{\sin(x)}{x}$ where $\lim\limits_{x\to a}g(x)=0$