You have made a mistake here:

It should be

since the intersection are two lines, consider the above expression as a equation with y as unknown variable, simplify the equation by multiplying , its discriminant

must be a perfect square expression containning z as variable. that is to say,

is a perfect square expression with respect to z. thus its discriminant

which gives .