Which Samsung A52? There's noticeable performance difference between the regular and 5G model (Snapdragon 720g vs 750g).
Overall the iPhone XS will have better OS support, faster hardware and a better camera.
My preference is used flagship phones over new cheap phones of the same price. You'll generally get better quality hardware and better performance for the money. I chose the iPhone XS myself this year. Got it used after looking at a bunch of phones. Prior years I've gotten the Pixel 3, Pixel XL, iPhone 6s, iPhone 5s and so on. Always used, never regretted it.
In that price range. I'd be comparing the iPhone XS, Galaxy Note10, Note10+, S20 and S20 FE. They'll all be good spec wise. I'd be looking more along the lines of physical...