Minor correction: You would be looking for '93-97 Ranger with same cab (Regular vs Super). 2 or 4wd and Auto or Manual aren't critical although matching makes life easier. You can even get one with damage to box. The box can be anything from '93 to '11, Styleside or Splash box doesn't really matter either just box length is correct (95% it is 6'; 5% it is 7')
If you are mechanically inclined enough to do the work:
Easier portion:
Swapping the box is couple hour task at most and 90% of work can be done ahead of time - you can remove all 6 bed bolts (1/2" breaker bar, T55 Socket, penetrating oil), then just put them back loosely. Undo the 3 bolts for the gas filler. When ready to do the swap, disconnect the wiring (just below tailgate, more/less center of truck and you're ready to pull bed bolts, and with help of buddy, lift the damaged box off. Reverse for installing good box.
Note: You can put new box inverted on existing box (couple 2x4 from Home Depot helps) to transport between locations.
More challenging:
Swapping cabs - again, you can do a bunch of prep work. The cab is bolted to the frame with 6 bolts as well - 2 at radiator core support, 2 in footwells, and 2 behind seats - the footwell and seat ones might be PIA as the rubber bushings need to be held (big pipe wrench) while someone in cab removes the bolts, bolt are same T55 head.
When you are ready to do the swap, you will need to drain the coolant, so you can disconnect the heater hoses, the wiring to the cab, the master cylinder & the steering. I unbolt the AC compressor and lift it with cab. (You might want to consider taking truck to shop and having them depressurize the AC - easier it you can disconnect it).
Here in Calgary, there are shops where you may rent a lift for a day. With everything ready, we drove the truck with bad cab to the lift shop; buddy brings the Ranger with dead engine and/or transmission on u-haul trailer. I drive the Ranger with bad cab into lift and remove cab. With cab off, we pull the frame out and having pushed dead Ranger off the trailer, lower the cab onto the u-haul trailer. Then we push the dead Ranger to the lift and remove the cab. Again we pull the frame out and replacing it with your good frame. Good cab is lowered onto your frame and secured with couple bolts.
Ranger is pulled out and pushed to parking lot, for all intents and purposed it looks like a runner. The damaged cab is put back on lift, dead frame is pushed under. Cab is lowered onto frame. Dead Ranger is put back on U-haul trailer and hauled to recycler.* Then we came back picked up Ranger with good body and frame transported them on the u-haul trailer to where I could finish reassembly. As it "looked" like a runner, I could reconnect wiring, coolant, steering, bolts, etc without attracting too much attention.
*1st time we used ratch straps to pull the Ranger onto the U-haul trailer - with four straps, it worked, but it was a lot of effort and slow. 2nd time, we used 2nd buddy's car and recovery strap to pull Ranger onto trailer, slow and careful being operative words (while slow, it was much faster than straps).
Cost: Day's time at lift shop, u-haul trailer for the day, tank of gas for my buddy's truck, pizza & beer for the buddies who helped, couple tools (T55 socket, 24" pipe wrench rental) which I didn't have, jug of antifreeze, couple 2x4s. I pulled a bunch of parts off the dead Ranger (alternator, tires and wheels, etc) to recover some of my expenses.