Your loan origination fees are typically deductible if the lender calculates them as a percentage of your loan, the loan is secured by your main home and you paid them at closing. In this case, which is not typical, you did not take the loan and it was not secured by your main home because you decided to use a different lender.
Any loan origination fees on the loan that actually became your mortgage, secured by the home, is deductible.