UE4 is ideal for beginners?

There are additional reasons why this comparison is not fair or accurate. One of the biggest that occurred to me a moment ago is material development. Unity requires you to learn a programming language dedicated to shaders called ShaderLab. UE4 is node-based and much easier to learn as it requires no real knowledge of programming. Within a minute or two, depending on how fast your development system is, you can have a reasonably complex material with advanced effects without ever learning a shader language. You can also preview from any node in the material you wish by right-clicking the node and selecting the preview option.

Then you have Blueprint which allows you to visually scripting your game’s functionality. While it does help to have some programming background, you really don’t need anything more than the basics which would be covered by an introduction to programming course. It is possible to build games entirely from Blueprint without ever touching C++ but it does help to learn C++ so you can make more advanced Blueprint nodes.

In order to get an understanding of the true difficulty of both engines, you really need to look at more than just one very narrow aspect. Hands-on time with both, as I have done, is also a very good method.