There are two realistic alternatives, but neither is a slam dunk
If you're deciding between the iPad Pro 2021 and the iMac 2021 for gaming, your top option will depend on your particular needs. The iPad Pro 2021 takes first place in terms of monitor brightness and refresh rate, as well as price and portable gaming. The iMac 2021 wins in terms of display size, audio quality, ports, and desktop/PC gaming access.
Neither provides the ideal gaming experience. To do so, you'll have to abandon Apple in favour of gaming PCs or gaming laptops. However, as capable gaming machines, either Apple's new desktop or tablet could be a good match for you.
this is a small example of my articles