The S10 leaps ahead of Apple is terms of hardware density
If you calculate the volume of the Galaxy S10 and S10+ vs the XS and XS Max, and compare that to the size of batteries and added space-taking features like dual-SIM, headphone jacks and micro-SD card slots (obviously this acts in hybrid with a dual-SIM, but it is still the case that the XS lacks any option for a dual-SIM whatsoever) the conclusion is damning for Apple.
The volume of the Galaxy S10 is 82,313.1mm^3
The volume of the iPhone XS is 78,395.5mm^3
The Galaxy S10 therefore has almost exactly 5% more volume than the iPhone XS.
That for a 28% larger battery in the S10, and the extra features like a headphone jack, another camera and a micro SD/dual SIM slot.
The same is true for the XS Max vs. Galaxy S10+
The volume of the S10+ is 91,089.6mm^3
The volume of the iPhone XS Max is 93,866.8mm^3
The S10+’s volume is therefore about 3% less than the XS Max’s
However, the S10+’s battery is over 29% bigger than the XS Max’s and that’s with all of its additional space-consuming features I’ve already mentioned.
Now, obviously the iPhone has additional features like the haptic engine and Face ID sensors that use space, but it’s extremely hard to argue that Apple isn’t very far behind in either battery or hardware density more generally.
There are plenty of arguments on this sub about how Apple doesn’t need big batteries because their phones are more efficient. Almost certainly true, but only [to an extent](https://www.anandtech.com/show/13392/the-iphone-xs-xs-max-review-unveiling-the-silicon-secrets/9). There are also many arguments about things like the headphone jack and micro-SD and whether Apple has made the right tradeoff between battery and these features.
As Samsung has proved, you don’t need to choose between the two, if only Apple caught up.
Sincerely, a frustrated consumer who thinks Samsung’s hardware is objectively superior, but who also loves iOS.