Mahir_1 :
Should I get the 7700k for a higher price? I want to make sure that I only have to change the GPU for like 5 years. I'm buying this for gaming. Or would the 1151 platform become obsolete for incompatibility with some weird stuff and become obsolete despite still being a decent performer?
PS : I'm not going to overclock it
Every couple of years, usually, Intel changes the socket completely. The 7xxx series CPUs will be End-of-Lined (end of new production) next year when the new model replacing Kaby-Lake is released. Socket 1151 is in its second year. Don't let that be a deterrent, as this happens all the time. Functionally, the i7-7700 or i7-7700k will be viable for probably at least five years, regardless of which one you go with.
As to graphics, PCIe 4 should be just around the corner. No worries though as more than likely they will be backwards compatible with PCIe 3 cards or slots as older PCIe 2 and PCIe-1 cards are with PCIe-3. The only way a "weird stuff" event that would prevent it to happen, would require a major shift in design and construction at the root level for every component of the PC.
As to which one to get:
i7-7700k if you plan on overclocking, OR you just want the faster clock.
You'll need a cooler (an extra expense. If you plan on overclocking that expense tends to grow with the need for better cooling)
i7-7700 if you don't care about overclocking or the extra base speed and/or you want to save some money. This one comes with an adequate cooling solution (if not noisier than most after-market coolers) and a lower price tag.
You are NOT required to buy another cooler to get your computer up and running.
If you do go for another cooler (either by choice or by requirement) There are better coolers than the hyper 212 EVO within the same price range.... The Cryorig H7 and DeepCool Gammaxx 400 come to mind.