Samsung A5 2017 has 3GB ram vs 6GB in iPhone 14
If you want something more similar I would suggest the standard "Samsung galaxy S23" which has 8Gb compared to the IPhones 6Gb
2017 phone does NOT run out of memory, but 2023 phone model RUNS out of memory?
Newer phone is worse.
Their point wasn’t “iPhones have more RAM than comparable Android devices” (as you say, that comparison is entirely unreasonable based on those devices), it was “this is the RAM on the devices where I observed this behaviour”. If the iPhone in question has more RAM than the Android, yet still OOMs where the Android doesn’t, that’s a pretty strong argument that iOS isn’t magically thriftier than Android at managing memory.