I did some testing of other non-damaging spells to make sure my algo was remotely close to correct...

I found that Peep/Libra and Float always seems to work (especially Float, despire its low hit rate).
That could explain why Peer from Cid always works.