To answer the question in the title, yes, the Samsung Tab S7 and 11-inch iPad Pro are the same dimensions (height). Both are 11 inches.
Similarly, if you’re looking at the larger model from each company, the Tab S7+ and 12.9-inch iPad Pro comes remarkably close in size, with the S7+ coming in at 12.4 in and the Pro at 12.9 in.
The chart posted by @JRC_Adventures offers additional information about each device, and I highly suggest taking a look.
Regarding the question in the body of your topic, either device will run Infinite Flight with little to no issues. It’s more of a question of whether you are an Android or iOS person. Any of these devices will be a step up from your current one, so there are no concerns there.
Let us know if you need any further assistance!