Answer
Z is a stronger acid than Y because of the electronegativity of Oxygen and the resonance forms of Z anion.
Work Step by Step
Z is a stronger acid than Y because of two reasons: O is more electronegative than N and can support the negative charge of the anion better, and the anion of Z has two equivalent resonance forms which is particularly stable.