Sounds like all you friend needs is a long lasting phone. Either will do in that regard. iPhone 15 over S23 any day, on the basis of software, reliability, camera. S23 will have better battery, maybe better display as well. Both are ridiculously overpriced for what they offer.
Don't have either...