As long as it’s apples-to-apples...then you’re better off with higher closing costs and lower rate.
Here’s how you can tell the TOTAL loan cost, and it’s easier than APR.
Assuming you are financing the closing costs into the loan, this always works:
Take two proposals, either from the same company or different.
Have an amortization schedule made for each loan option you are considering.
Look at the ten year mark and see what you owe at that point for both cases.
THEN - take your monthly payment in each scenario and multiply it by 120 months (number of payments in ten years) and add that to the amount you’ll owe in ten years.
That’s how much each one will really cost you in that amount of time, including what you’ll owe when you go to sell. Forget APR’s and all that, this method works.