The "priority" option tell witchtells which label will be displayed if two labellabels overlap but if you set the option to render all label even overlaping labellabels (even overlapping labels), the Z index option letlets you choose witchwhich one will be on top and will be more likely to be readable.