In Cinebench R15, the old MacBook Pro with Haswell 2.4 GHz Core i5-4258U is roughly the same speed as the MacBook Core i7-7Y75, or perhaps very mildly faster. However, the old MacBook Pro will be able to maintain that speed forever with the fan, whereas the MacBook will drop 5-10% with sustained loads (as in 20 minutes).
Overall, it's basically a wash performance-wise, unless you're going to be working with 4K HEVC or something where the MacBook wins (because it has hardware support for both 8-bit and 10-bit HEVC).
However, they are two drastically different machines. The MacBook is an ultraportable that is great to use in economy class on the plane, whereas the MacBook Pro has lots of ports including Thunderbolt, and is easy to upgrade, but is way heavier. Those should be your decision makers, not the performance in most cases. As for 4K, if you really wanted to create content with 4K HEVC sources, the better bet would be a 2017 MacBook Pro, as it would be way, way faster than both of these machines.