A 9-ton dinosaur vs a 400-pound primate. The gorilla is a snack.
The T-Rex outweighs the gorilla by roughly 45:1 and has the strongest bite of any land animal in history. The gorilla could fit inside the T-Rex's mouth. There is no competitive analysis to be done here.
The gorilla is smarter. That doesn't help when the opponent is 45x your weight and can swallow you whole.
12,800 PSI bite. 9 tons. The T-Rex doesn't need to try.
The T-Rex wins without noticing the gorilla exists.
Silverback Gorilla also fights
Tyrannosaurus Rex also fights