in Wrocław just prior to Krakow
Personally I tend to prefer Wrocław (a very unique city) though the interesting part is relatively small.
I hated Krakow the first time I visited (in the 80s... communist*) but later spent some pleasant times there, including long train layovers (12 or more hours) that flew by very quickly.
Krakow is definitely more tourist friendly and you should have a good time there.
*the main exception was a guy singing American blues songs for tips in an underground passageway. I tried to talk to him between songs but he didn't really know English he'd learned the lyrics phonetically (really well I have to say better than most professional singers). I gave him a dollar (substantial change in those days).