My experience has been, if the pulls are not in the prescription bottle, and in a pill case, that it goes unnoticed. I suspect the bottle with the wrong name would too. X-Ray machines can't read labels and as long as there are not 20 bottles, chances they look at them are almost zero.
However, in both cases it is possible to get in legal trouble, most likely not probable though.
If it were me, I would take the Xanax, put the pills in a pill case, and call it good.
To me the risk is very minor compared to the benefit.