The "priority" option tell witch label will be displayed if two label overlap but if you set the option to render all label even overlaping label, the Z index option let you choose witch one will be on top and will be more likely to be readable.