Should I just pay cash or lease?

So I am looking into buying another car because the one I currently have needs some maintenance on the transmission and I am not confident it wouldn’t just fail after the work is done.

I bought my current car for cash and have had it for just over 2 years and I have kept up with it’s oil changes and regular maintenance.

While I have been looking into replacing my current car, I know that I have a limited budget, but some of the options I am looking at fall into two categories:

Option A

I go with a lease on a new vehicle. It will be my first car purchase that isn’t in cash. One advantage this can give me is that I could build my credit. The example I have is a lease for a 24 Tacoma that will cost about 450 a month


Option B

I found a few vehicles that I could pay in cash, but that is how I got into my current situation. The advantage of option is the lower cost overall given the up-front payment. One example I have is a 99 Dakota that would cost just under 3500 dollars.

Any opinions or suggestions would be appreciated.