I can understand the frustration but your post seems to indicate your basic problem - that you have a "second passport".
Regardless on whether you have physically one or two passports in your possession you will need to go back - again - to have the only passport you plan to use going forward scanned.
I would not leave that office until you personally get to kiosk and prove it works to your satisfaction.
Good luck!