What kind of 4K? As has been mentioned in some of the media threads, the 2017 has full 8-bit and 10-bit decode support for HEVC. The 2016 has 8-bit only, and the 2015 has neither. For encoding, for hardware support Apple supports 8-bit encoding only, but again, that requires at least a 2016 MacBook Pro.
This may or may not be important to you but it is a consideration, since moving forward, Apple is building their OS and applications around HEVC support. So far it is mainly 8-bit which is OK for the 2016 model, but for the 2015 you're out of luck.
Aside from your usage habits, how beneficial is that hardware support performance-wise? Well, consider one example I tried where I took a 10-bit 4K demo HEVC video for Sony TVs and tried to play it on Macs.
Within Sierra, I tried playing it on a brand new iMac Core i7-7700K. Since Sierra does not support HEVC, the iMac was forced to try to decode it using software only on the CPU. This 4-core 8-thread 4.2 GHz CPU (with Turbo Boost up to 4.5 GHz) was maxed out at 100%, the fan was maximum speed and loud, and I still couldn't play the file cleanly. It was mostly OK, but it sometimes stuttered a bit. This is Apple's fastest consumer machine, and is faster than any MacBook Pro in existence.
Then I took the same video within High Sierra and tried playing it on a brand new Core m3 MacBook. Since High Sierra does support HEVC, and since my MacBook is a 2017 that supports full 10-bit decode, I could play it just fine, with less than 25% CPU usage, even though the CPU is only a dual-core 4-thread 1.2 GHz chip (with Turbo Boost up to 3.0 GHz). Furthermore, I could even do a screen recording at the exact same time. (Playback during the recording was fine, but the recording itself wasn't perfect. I guess doing both the 4K playback and the high rez screen recording at the same time was a bit stressful on the Core m3.)
Below is my thread on it in the MacBook forum:
https://forums.macrumors.com/threads/4k-hevc-10-bit-on-the-2017-core-m3-macbook-is-gorgeous.2054232/