I've test driven all those (but not the diesel Nissan, it was the gas version)(and, the Ford was a 2016). By far, the Ford with the 2.7 turbo drove the best. I also drove the 2016 Ram 1500 and ended up buying a 2015 Chevy Silverado, simply because the incentives were tremendous when I purchased. I still wish I had spent the extra money and bought the equivalent Ford. They drive much better, in my opinion.
For less than $25k I have to guess that you are looking at the single cab, probably kind of stripped down. I'll tell you right now, that I drove several different variations of most of the full size trucks, and particularly the Ford, and the single cab, short bed, base model with the 2.7 Turbo was REALLY fast and actually pretty nice to drive, especially for a truck. I came really close to buying that one (for about $24k), but needed extra seating since I was replacing a family car.
My recommendation is the brand new Ford if you can get what you need for that price. It blows away the other trucks you mentioned.