Why do we set sz[parent[a]] = 0?

does it really make any difference?

Screenshot from 2020-06-12 07-15-13

are you taking about
sz[super_parent_x]=0;
this is because super_parent _x is no longer superparent now super_parent_y is superparent so its size increase and other’s size is zero

you can watch video at 39:00 explained clearly