Vehicle financing, walked away but could this be improved?

Hii I think a dealership tried to trick me and I’m not sure what to do.

> 2022 Mazda CX-5 Premium.
>
> + 4,000 miles
>
> + $34,300 MSRP
>
> + $33,900 after mileage discount
>
> + +$982 “Dealer package”
>
> + +Trade in (that was super low) $9,500
>
> + +Taxes and fees
>
> + -Trade payoff
>
> Total price $34,185

I was so disinterested after the funny fees they added on, I was prepared to sign and walk out the door right then. I left and other dealerships have been contacting me but I’m not sure now. I also got a written appraisal for $14,000 for a trade in but I don’t want to pay more than $23,000 total for the Mazda.

Is this possible?