S24 ultra, I have one for a similar reason, although I also really like a lot of its other features. While you can certainly get good photos with other phones, it is among the best on the market.
I was considering a £500-600 DSLR like I've had in the past, but ultimately I like to take photos when an opportunity arises, not just at the times I happen to have my expensive camera on me. If you take a lot of photos but you aren't a professional, the best thing is a high end phone. Doubly so, because unless you're very experienced at setting up the camera correctly for the conditions, your phone camera is almost certainly going to do a better job than you would on a manual camera.
So, in the end, rather than getting a cheaper phone and a camera, I combined the two. I know Samsung suck in a lot of ways, but when it comes to actually using my phone, they're excellent compared to other brands I've tried.