Currently if you are tracking invitees in the event module and one of them registers online, you can link the event registration to the constituent record but you cannot link it to an existing participant record. In order to process the gift, you have to either 1) allow duplicates and then delete the duplicate or 2) delete the existing participant record and then process the event registration.