"Core" in CPUs is not precisely defined. AMDs exact definition differs from Intel.
Further, number of cores does not define what occurs in a core. In other words, there are two core CPUs stronger than four core ones when the cores are not the same. This is the same issue as frequency of clock. What occurs in one cycle is critical.
Both Intel and AMD can turn cores on and off and set and lock or unlock frequencies and turbo.
There are limits to the die shrinking and new technology is being experimented with that is totally different.
AMD - Threadripper 2990WX 3 GHz CPU cores 32 The number of threads 64 Passmark 23252 and US$1617
250 Watt thermal design, 68C max temp 0.012 micron
Intel Core i9-9980XE @ 3.00GHz CPU cores 18 The number of threads 36 Passmark 29473 and US$1985
165 watt thermal design 84C max temp
Intel Core i9-9960X @ 3.10GHz CPU cores 16 The number of threads 32 Passmark 28735 and US$1700
165 watt thermal design 85C max temp
There are server Intel Xeon with more cores. Xeon 8176 CPU cores 28 The number of threads 56
Intel is 0.014 micron
Moore's law is more of an observation.
https://gist.github.com/emartin59/0345adc1a60ad58433bb9b24113f490b
As the circuit lines and spaces shrink they start getting physical issues
AMD is moving to 7nm and Intel is releasing their 10nm and then to 7nm
https://wccftech.com/intel-10nm-ice-lake-sunny-cove-14nm-comet-lake-amd-ryzen-3000-cpu-z-benchmark-leak/
They're up to 100 million transistors per sq mm.