That entirely depends on countries X and Z.
If country X discriminates against citizens of Z, then not telling that you are citizen of Z might have all kinds of negative consequences for you when found out.
That entirely depends on countries X and Z.
If country X discriminates against citizens of Z, then not telling that you are citizen of Z might have all kinds of negative consequences for you when found out.