How to Implement this special selector?
No, it isn't, because z isn't a condition that can be tested for in synthesizable logic. You'd need to find a way to convert the concept of "z or not-z" into a logic level.