You can't undo this, because the affected people were never see x.example, and nothing you can do on y.example can tell the browser to forget the redirect it saw on x.example.
If you redirected y.example back to x the browser just sits in a loop until it gives up, but in that case, you can break out by making y redirect to a unique url, with a query string or whatever