I would definitely recommend the 27" iMac. The major difference between the smaller and the bigger iMacs is the 27" has user accessible RAM slots and can hold 64GB of RAM. The 21" iMac does not have user accessible slots and can hold less RAM, potentially only 32GB if one buys the fanciest option.
In practical terms, the difference between the Core i5 and the Core i7 is minimal.
https://browser.geekbench.com/mac-benchmarks
You'll notice the single core scores:
Core i5 @ 3.8Ghz is 5213
Core i7 @ 3.6Ghz is 5234
Multicore scores:
Core i5 @ 3.8Ghz is 15,254
Core i7 @ 3.6Ghz is 17,777
In the multicore case, the Core i7 is about 14% faster in ideal conditions. Balance that against the possibility of more RAM in the 27" with the Core i5 and the slightly faster GPU. I'd choose the 27". In day-to-day computing, I doubt you'd notice the difference between the two CPUs. If you're drag-racing the two machines doing a big render in Final Cut, the Core i7 would be a little faster, but both machines would be in the same class. If saving time on big multicore-capable tasks like that is a priority, then an iMac Pro has greater than 2x the performance.
One final note, the 27" 5k Retina display is outstanding. Regardless of CPU speeds and RAM upgradeability, choosing the 27" on the display quality alone is a reasonable thing to do.