That’s the same person who said that Safari ran out of memory on stuff their Android doesn’t.
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.