not a unity or godot user (so feel free to ignore) but for 2D games I usually just use SFML or GLFW+OpenGL since the graphics for 2D only takes a few days to program. it’s pretty simple if you are comfortable with C++ but i’ve never used this technique for anything more complex than an NES Zelda clone.
overall though I think it’s a pretty underrated method that gives you really fine-grain control over the graphics/structure of your game.
Fellow game devs who are fleeing Unity, what are your thoughts on Godot vs Unreal for making 2D games? I know Unreal is pretty over-powered for most 2D development, but given I'm used to Unity, how is Godot feature-wise? Are there any features it's noticeably lacking?