When in doubt, UE4 is going to be open source and Unity is not. In my book until Unity opens up their code there is no competition for anything more than a hobbyist toy that needs to get at the engine guts without a new car or more to see it.
Although Unity is not 100% publicly open-source without requesting for their source code license, they have released a bunch of their source code to the public.