I studying the layer labeling options in QGIS and encountered two options which seem to be the same. If I understand the QGIS documentation correctly, the option "priority" within "Positioning" determines which label to render when there are two Labels overlaping.
The Z-Index Option in "Rendering" seems to be doing the same.
What is the difference between these two options?