The iPhone doesn't have garbage collection so I am not sure what you are talking about above regarding "cleaning" ram.
When the need to free RAM arises, the CPU still has to notify RAM.
And when the CPU does that, it needs to know precisely "where" in RAM to "free", otherwise you'll experience random crashes.
So the memory freeing process actually takes a few steps... first the CPU has to fetch or calculate the memory address to free, then it has to calculate how many "blocks" (bytes or what have you) to clear from that memory address, and then it has to send the "free memory" command to RAM.
When this is done to a large amount of memory addresses, the CPU has to poll RAM, and if bandwidth is low, then you'll experience a slight delay, or lag.
In a perfect world, RAM bandwidth on most iOS devices should be enough for the polling to not cause a significant performance degradation (in other words, no "delay" or "lag"). But unfortunately, all iOS devices thus far share system memory with the GPU. As such, most of the bandwidth is already sucked up by the GPU, and the CPU only has a fraction of that bandwidth to do stuffs with.
On some Android devices, VRAM is specifically reserved for the GPU on its own bus, so RAM bandwidth is usually not so constrained. However, the garbage collector is the "bad" way to manage RAM... as it has to poll memory address and see if the address is still in use before it actually sends the "free memory" command... So in short, it jumps through more hoops.
Google has actually done a lot to offset this "overhead"... and now Garbage Collector also does what Apple's Automatic Reference Counting does... But in general, it's still not as good as iOS because developers still have no way to manually manage memory usage of their app.
On the flip side, badly coded iOS apps do leak memory over time... and eventually, the leaked memory will build up enough that it bogs the system completely... necessitating a restart. That was why Apple introduced ARC... because they couldn't deal with bad devs any other way. But even ARC is not perfect, and in the long run, I believe that Android's Garbage Collector will prove to be superior once RAM bandwidth and processor performance far offset the performance hit caused by the constant RAM polling.
For now, though, I think iOS does it better... but it's not perfect. 1GB of RAM in the iPhone 5 will feel extremely short when you start loading up more intensive 3D games... and more interface graphics for the higher res display.