Exact match keywords in search campaigns are prioritized over Performance Max campaigns, and Performance Max campaigns are prioritized over smart shopping and standard shopping campaigns. Otherwise, there is no hard prioritization, and the best ranked ad enters the auction (therefore does not impact cost-per-click).