101Leafy researched the games.

T-Rex

ティラノサウルス

T-Rex, Super Mario Odyssey art from the Prima guide, p343
T-Rex. Super Mario Odyssey: Prima Collector's Edition Guide (Prima Games, 2017) p343

The apex predator of all time is no match for a magical cap and a perseverant plumber. Naturally, no one wants to go toe-to-claw with a T-Rex, but get a little height with a nearby ledge or platform to get a clear cap throw at the dinosaur's cranium.

Super Mario Odyssey: Prima Collector's Edition Guide (Prima Games, 2017) p343

In Kingdom Adventures

Cascade Kingdom

The history books never mentioned how much time a Tyrannosaurus Rex spends napping. Who knew? As fun as it is to climb on top of it, it's even more fun to capture one. Dino smash!

Super Mario Odyssey: Kingdom Adventures, Travel Companion Volume 1 (Prima Games, 2017) p47

Wooded Kingdom

We told you not to go into the Deep Woods, but you went anyway, didn't you? And now there's an angry T-Rex chasing after you. The T-Rex in Deep Woods is much harder to capture than other T-Rex dinosaurs Mario might encounter. The best way to handle this T-Rex is quite simple: RUN!

Super Mario Odyssey: Kingdom Adventures, Travel Companion Volume 2 (Prima Games, 2017) p53

From the kingdom chapters of each volume.

English name
T-Rex
Japanese
ティラノサウルス (Odyssey Journal, Super Mario Odyssey official Japanese site (Nintendo, 2017 to 2018) post of 2017/06/30)
Kind
Unfriendly captures
Kingdoms
Cascade Kingdom, Wooded Kingdom
Guide pages
Super Mario Odyssey: Prima Collector's Edition Guide (Prima Games, 2017) p343

Kingdoms as the Flora & Fauna box of each kingdom in the Prima guide lists them.

Sherm · Tropical Wiggler · Captures