Two UNIVARIATE polynomials of degree $n$ are identical, if they coincide at $n+1$ places, for example at the numbers $0,...,n$.
To formulate it more mathematically, if $f(n)=g(n)$ for $n=0,...,d\ $ and $deg(f)=deg(g)=d\ $, then we can conculde $f=g$.
This can be easily checked even for monster polynomials.
If we have two variables (lets say $x$ and $y$), we can fix $x$ and get a univariate polynomial. If the polynomial has degree $d$ with respect to $x$, I think we can also use the above idea, but I am not sure, whether it actually works.
If yes, we could use the method for arbitary polynomials.
In practice you could also do the following :
Evaluate the difference of the polynomials at some random points.
If the value is not $0$ at any point, the polynomials must be distinct.
If you get $0$ at all the points, you have a very good chance that the polynomials are equal.
Maybe, from a mathematical point of view, this method is debateable. But it should be sufficient for practical purpose.