This is a generalization of this question :: Which is larger? $20!$ or $2^{40}$?.
No explicit general solution was presented there and I'm just curious :D
Thank-you.
Edit :: I want a most-general solution lfor arbitrary $x$ and $y$; not some specfic cases which can then be solved by direct computation. Below, Ahaan-Rungta shows that the case $x < y$ is the one to be considered.
"Just compute them and compare" is the only fully failsafe method.
In most cases, however, estimating the logarithms of both of $x^y$ and $y!$ using Stirling's formula will yield a conclusive result without needing to compute the two values in high detail.