iPads generally have better battery performance than iPhones in all use cases due to having much larger batteries and in the case of wi-fi only models, not using power on cellular/5G connections. So yeah, an iPad should definitely last longer for gaming than an iPhone.