the rx7 5speed will bolt up to the motor, but if it will fit in the trany tunnel im not sure...I think it might, but you would need to modify the PPF (power plant frame) as well as get a new driveshaft.....Then you would have a good trany but would blow up your rear end all the time.....so you would also need to replace that.
I know with the 6speed you can get new shift forks and a few other internal parts (bearings, some gear sets, syncros...ect) and it will hold up to more power.....
I have seen the rx8 6speed bolted to a 20b and it was making 600whp...but I have no idea how long it lasted.