$37k 2023 Pinnacle

Is this a good deal? Dealer is saying to get all rebates I have to lease but can pay off the lease in a couple weeks without a penalty. Total $20k in rebates and an additional $5k off. Obviously giving up the federal tax credits and the dealer gets them, but what's the catch?