Didrik
The first priority tyre is always the one you put as your starting tyre, but that is only if the weather stays as it is and it doesnt start/stop raining. If it does, it chooses the appropriate tyre from the advanced setup no matter if it stopped raining or started. So if you want to solve the problem I suggest you always take the advanced setup into account if the weather forecast is/has been showing a possibility for rain.
i deliberately selected the Interz as it jut stopped raining before race got locked, although the medz benefited me ele i could had landed way behind before first tint itself, intead it gave usedge over SS and we entered pit ahead of ss after 6 lap, yes we do used bit of drs & kers