It's very obviously not "the easy part", it's definitely hard. It's just not the only hard part. And there may be other parts that are harder in some sense.
Also totally depends on what kind of coding you are doing.
Yeah building a web app can become somewhat easy, but is distributed machine learning? What about low level kernel code?
The easy part and hard are not mutually exclusive.
Some code is hard. Most business logic (in the sense of pushing data around databases) isn't. The value is in analysis and action, which the system enablrs, not the machine itself.
Creating a high performance general purpose database is hard, but once it exists and is properly configured, the SQL queries are much easier. They'd better be or we wasted a lot of time building that database.
Honestly, it really is the easy part of the job. Really truly.
It's difficult when you're first learning but there are definitely much harder skills to learn.
Something can be hard and also be the easy part. Imagine you got to see into the future and use a popular app before it was released, and you decided to make it yourself and reap the profits. Would be an absolute cinch to copy it compared to trying to make a successful app from a blank page.