If you can qualify for a car loan with a bank, it will almost always be preferable to dealer financing.
Dealers offer financing primarily to ease the process of getting you to buy a car. Such financing can be more costly. Dealerships act as an intermediary, working with lenders to arrange car loans for buyers. As a result, they’ll charge you a fee for handling your loan, which will make it more expensive.
With banks, their primary interest is getting the customer into a loan that suits them and that they will be able to repay. Depending on your credit score, down payment amount, and whether the car is new or used, a bank will generally be able to offer a lower interest rate than a dealer for a comparable loan.