Yes, Ryanair generally do look for the confirmation number, in Dublin certainly (I've often just been asked for surname when on the return flight especially in Bournemouth airport).
However, if you have the credit card bill which includes the charge, the payment detail for Ryanair may include the confirmation, so all might not be lost. Only discovered this recently on my own CC bill!