Samsung software held it back, but the Galaxy S24 offers more AI features than an iPhone 15, making it the better choice.
https://www.techradar.com/phones/samsung-galaxy-phones/i-was-wrong-when-i-said-you-should-never-buy-a-galaxy-s24-over-any-iphone