For pixel art games, I personally recommend GameMaker. It specializes in 2D, and since hits like Undertale were built with it, you can definitely create "serious" games. GML (GameMaker Language) is also quite easy to write, so I think it’s great for learning algorithms.
Unity is not that difficult if you clearly understand the Template Method pattern. The difficult part is that students often struggle at a different point than expected.
That said, if not Unity, GameMaker is also a good option.
However, it’s been a while since I really dug into Unity, so things might be different now with tools like Codex or Claude Code (without suggesting we just resort to "Vibe Coding," of course). If you have a way to consult someone—or something—about the hurdles you can't clear on your own, Unity remains useful in terms of the sheer breadth of what you can achieve.