2D Games for Unreal?

I’m learning Unreal Engine so I could eventually learn how to create a 3D game, but I’m also wondering if this engine is capable of making 2D games, and if it’s good or not. Specifically, a 2D game with a pixel art style, but I doubt the art style matters too much. Is the Unreal Engine good for making 2D games or is Unity better? And in side-scroll, top-down, 2.5D views?