There's typically a good reason why the i9 powered 2018 MBP can beat the i7 powered 2018 MBP: it's got 50% more cores so even in a throttled situation there's the small potential that those two additional cores, running at a slower speed, can and do still provide enough "umph" to get the jobs done with either equal or slightly better performance than the i7.
It's amazing how people are missing that aspect of this. If the i7 vs the i9 were tested side by side and if they both throttled down to exactly the same speeds identically every moment during a benchmark run the i9 will win due to the two additional cores (assuming of course the application being used for testing is actually written properly and it's taking advantage of the two additional cores).
It might not be a huge advantage in terms of benchmark results, but the basic gist is the i9 will score higher at the same clockspeeds than the i7 if for no other reason than because it's got 50% more cores. Yes, the i9 does have a slightly higher "stock speed" but in this example, as I've stated, in identical situations with identical clock speeds, the two additional cores would give the i9 the win every time.
Yes, it's so simple it shouldn't have to be said at all but there, I said it.