Ah ok, it's weird, but it makes sense.
So in this case Poland will most likely play Spain and Slovakia will play Italy.
Damn, this totally changes where they are positioned in the draw as well. So complicated
It could happen similar in A and C with Turkey / Hungary (if they beat Croatia and Romania lose against Azerbaijan). In that case Serbia would face Hungary either they finish 1st or Turkey 1st but host.