Latter for sure, former not so much. Apple is not designing its own CPUs (but ARM does) nor they are physically manufacturing or improving the silicon process (but TSMC does), they build SoCs like many other companies out there. This means that they can't make an advantage over the competitors by:
1. Making the silicon process more advanced
2. Improving CPU microarchitecture
3. Improving CPU instruction pipeline
4. Improving CPU branch prediction or OOO execution
5. Making the TLB page-walker algorithms more efficient
6. Making better cache-coherency protocols
7. Implementing their own bus interconnect which is faster than others
8. Designing better RAM modules
9. Etc. etc. (I could go on and on but I guess the point is visible)
What Apple can do to make a difference is that they can fine tune the SoC microarchitectural details but hardly anything else. By looking at the specs of M1's, the biggest outliers with respect to other chips of the same or similar class currently existing on the market are: 1. RAM and CPUs are physically co-located on the same die
2. RAM is advanced to (LP)DDR5
3. CPU caches are massive (L1, L2 and TLB)
4. There's a separate cluster of CPUs for low-power mode execution
First three things from the list is what is making M1's so fast, and especially the third point. Enlarging CPU caches has been done by the server CPUs like forever and which is the reason why quite old (2014) 2x Xeon system can eat AMD Ryzen 9 5950X for breakfast in some of the multicore workloads I ran (and I mean substantially). Last thing from the list above is what is making this chip more power efficient and this technique is as old as the moment when big.LITTLE was introduced in 2011. In nowadays ARM chips it is known as DynamIQ but the concept is the same: conserving energy by running less power hungry CPUs when workload does not require the full power (which in average user is most of the time).