Unity may cost less when
The product targets mobile, WebGL, broad device support, a modest visual style, or a team already experienced with Unity.
Unreal may cost less when
The project needs high-end 3D, cinematic workflows, large environments, or tools already available in the Unreal pipeline.
The real comparison
Compare the complete production plan, including art, technical art, backend, optimisation, testing, and release support.