The key fact about "canceling" which is easy to miss
(unless it is taught very, very well)
is that it is performed strictly by standard arithmetic operations.
It may sometimes look like a matter of finding matching symbols and crossing them out,
but when that occurs it is only a byproduct of the operations that are applied.
Canceling terms in the numerator and denominator of a fraction or ratio is done by
means of multiplication or division.
First of all, can we take the two facts
$\frac ab \cdot \frac cd = \frac{ac}{bd}$ and $\frac aa = 1,$
and combine them like this:
$$ \frac mn = 1 \cdot \frac mn = \frac aa \cdot \frac mn = \frac {am}{an}.$$
Now, you can use this in two ways. One way is, you can run it backwards to show
that it is OK to cancel the two $a$s in the expression $\frac {am}{an}.$
But another way that I find sometimes easier to understand is,
if I want (for example) to cancel an $x$ in the numerator and denominator of
$\frac {xp}{xq}$,
I can take $a = \frac 1x$ in the example above, so that
$$ \frac {xp}{xq} = \frac {1/x}{1/x} \cdot \frac {xp}{xq} =
\frac {\frac 1x \cdot xp}{\frac 1x \cdot xq} = \frac pq.$$
Some people would say to divide both the numerator and denominator by $x$,
but I prefer to think of it as multiplying by $\frac 1x$; it's the same thing,
of course, but I find the distributive law of multiplication over addition is
better ingrained in my head than the corresponding rule for division,
so I'll do a multiplication when I can.
In practice, once you have mastered the technique you can usually just write
the first and last expressions without the ones in between, but
sometimes it is still helpful to remember the in-between steps,
especially the one with $\frac 1x \cdot xp$ and $\frac 1x \cdot xq$.
So if you have an expression
$$\frac{y + x}{x},$$
in fact you can try to "cancel" an $x$ if you do it correctly:
$$\frac{y + x}{x} = \frac{\frac 1x(y + x)}{\frac 1x \cdot x}.$$
So the question is what you get from this.
It depends on how you handle $\frac 1x(y + x)$; do you apply the distributive law or not?
If you don't use the distributive law, you get
$$\frac{\frac 1x(y + x)}{\frac 1x \cdot x} =
\frac{\frac 1x(y + x)}{1} = \frac 1x(y + x) = \frac{y + x}{x},$$
that is, you end up where you started out.
If you use the distributive law, you get
$$\frac{\frac 1x(y + x)}{\frac 1x \cdot x} = \frac{\frac yx + 1}{1} = \frac yx + 1.$$
Of course you could have gotten the same result using the fact that
$\frac{a+b}{c} = \frac ac + \frac bc$, like this:
$$\frac{y + x}{x} = \frac yx + \frac xx = \frac yx + 1.$$
So we see that in this case, canceling $x$ did not do anything particularly useful.
But it's not always easy to tell whether you'll find a cancellation useful
until you've tried it.