Doesn't seem like much of a comparison to me -- they're not really in the same category, are they? If you can afford the P4, which is quite a bit more expensive, and you don't mind spending that extra money, it's clearly a better car (much as I have not been satisfied with Polestar dealerships -- can't speak to Tesla, having never owned one -- and you should really consider the hassles you will have if you live far from one of their sparse service centers).
I'm curious about the comment that Tesla's drivetrain is superior. I only have experience with the P2 and the Tesla 3, and can attest to the vast superiority of the Polestar's blended braking system. And, of course, the advantages of Tesla's supercharging network is moot now that Polestars can use them.