I would say your best bet for finding the information you want is dedicated forums for each truck. This forum just won't have the kind of detailed info you're looking for. I think Toyota makes a great product, but to be totally honest they are starting to get to a point where I question it. From the late 90s through early 10s I think Toyota was really king on most things, but you're paying an upcharge for a vehicle that isn't much better than competition. I've not heard great things about towing with tundras, but ymmv. The early 4th gen 1500s should be ok, but I seem to remember some quality control issues, and not sure if the trans is something you'll want to deal with or not. Again, the model specific forums will have the best information here. If you decide to make the switch you'll probably be pretty happy with either.
The last thing I'll add is that the Toyota may be more reliable overall, but I'd price out what is likely to go wrong with each, and their respective timeframes. That way you can see how much you're paying up front for the reliability of the Toyota. As others have said, I just generally don't see the value in spending 2/3rds of a vehicles total price with a truck abused for the past 100k miles because "its a toyota" vs buying a decently taken care of ram and saving yourself a bunch of cash, again assuming the likely to go wrong items don't outweigh everything.
I know you didn't ask, but I over thoughts on the financials. Feel free to ignore if you want. Tax law is pretty complex and I'll assume you know what you're doing here, but may be worth it to stop and look at the overall picture. As I read it you want a new vehicle for a tax write off, but you also mention that you're trying to move debt for a loan on some acreage. I would wager a guess that your 3500 is paid off, in which case you're doing nothing for your loan to debt ratio, perhaps hurting it a little. In terms of the tax write off, I had thought that vehicles must be new for the full benefits from that program? Perhaps I'm wrong, as I said tax law is complex, but either way couldn't you also help reduce tax burden by donating or such? To me, it seems like an odd choice to spend cash out of pocket, to get a tiny bit of tax write off, when you could likely spend less via donations and get the same write off. Again, I don't know all the details but it may be digging into additional options.