Galaxy Z Flip 5 and iPhone 15 are available at same price but both have different features.Galaxy Z flip 5 is fifth generation flip phone is available at $999.The iPhone 15 is superb phone from apple and has marvelous improvement from its predecessor which changed the face of iPhone.
Display
Samsung Galaxy Z Flip 5
Main Screen 6.7 Inch Cover Screen: 3.4 Inch 1200 nits peak brightness Super AMOLED Display 60Hz refresh rate 748×720 resolution 120 Hz refresh rate Foldable Dynamic AMOLED 2X display
Iphone 15 Pro
6.1 Inch Super Retina XDR OLED display, 120Hz Pro Motion: 1179×2556 resolution 461 PPI 2000 nits peak brightness
Both phone have an LTPO panel and can dial down the refresh rate from 120Hz to 1HZ depend on usage to save battery life.Flip 5 has huge screen of 6.7 Inch and iPhone 15 has only 6.1 Inch
Battery
Samsung Galaxy Z Flip 5
15 W Wireless charging, 4.5W reverse wireless charging 25W wired and 3700mAh
iPhone 15 Pro
20W Wired, 15W MagSafe wireless charging 7.5W with Qi wirelss charging
iphone 15 Pro has smaller3274mAh cell offer super battery life than 3700mAh cell on the Galaxy Z Flip 5. Flip5 has reverse wireless charging which you can use you charge your smartwatch via your phone.
Storage
Samsung Galaxy Z Flip 5
8GB RAM, 512GB/256GB Storage
iPhone 15 Pro
1 TB Storage/ 512 GB/256 GB/128GB/8 GB RAM
Flip 5 only get two storage variants 256 GB and 512 GB. iPhone 15 Pro start with 128 GB of internal storage. Both phone have 8GB of RAM. iPhone iOS has superb RAM Management you can switch rapidly between the apps.
Design
Samsung Galaxy Z Flip 5
Folded: 85.1×71.9×15.1mm and unfolded 165.1×71.9×6.9mm IPX8 water resistant and 187 grams
iPhone 15 Pro
187 grams, 146.6×70.6×8.25mm, IP68 dust and water resistant
Galaxy Z Flip is is longer. Iphone pro 15 is narrower and thicker than Flip 5. iphone has dust and water resistance
Camera
Samsung Galaxy Z Flip 5
12 MP f/ 1.8 Primary, OIS, 4K Video at 60fps, 12MP f/ 2.2 Ultra Wide Front: 1oMP f/ 2.2, 4K video at 30fps
iPhone 15 Pro
48 MP f/ 1.8 primary 4K video at 60fps, 3x Optical Zoom marco photography 12MP f/ 2.8 telephoto
The iPhone 15 Pro has a 48MP main sensor it take higher resolution it has 12 MP telephoto lens.
My final verdict is the iphone 15 pro has greater feature than Samsung Galaxy Z Flip 5.