Is it necessary to add y = 8'h00; when sel is either x or z? It's already 8'h00 by default.
y = 8'h00;
sel
x
z