I don't think the replies are helpful at your level of understanding. In the ring you have constructed, both $[x]$ and $[y]$ are $[0]$. So it is not a good example. I'll show that $[x] = [0].$ To see this, remark that $x(y-2) = xy - 2x.$ So, $x = \frac{1}{2} \cdot xy - \frac{1}{2}x \cdot (y-2)$ which implies that $x \in (xy, x-2, y-2)$ is in the ideal so $[x] = [0].$ The equality $[y] = [0]$ is proved similarly.
Indeed as one commentor noted, $\mathbb{R}[x,y]/(xy)$ should work. We trivially have $[xy] = [x][y] = [0]$. But $[x]$ and $[y]$ are not $[0].$ @Bill Dubuque gave an argument why this is the case. He assumed that $[x] = [0]$ and found a contradiction $1 = 0$. So $[x] \neq [0]$ and similar for $[y]$.