head to head
Portal 2 asks more than Undertale, and the gap is optimization.

Optimization · Pure Optimization
A first-person puzzle game where seeing the solution is the whole skill.

Optimization · Pure Optimization
A scripted RPG where pattern-learning and pacifist routing carry you.
Portal 2 leans Optimization (Pure Optimization); Undertale leans Optimization (Pure Optimization).
Undertale leans a little harder on execution, though the gap is small.
Portal 2
Portal placement requires some precision but timing is lenient.
Undertale
Bullet-hell dodging in scripted patterns
Undertale leans a little harder on reads, though the gap is small.
Portal 2
No opponent; puzzles are static.
Undertale
NPCs follow fixed dialogue trees, not adaptive
Undertale leans a little harder on variance, though the gap is small.
Portal 2
Puzzles are deterministic with no randomness.
Undertale
Minimal randomness in encounters
Portal 2 leans clearly harder on optimization.
Portal 2
Solving the puzzle's logic IS the entire game.
Undertale
Learning fixed boss patterns and mercy routes wins
A matching score does not mean a matching test. Two games can both sit at 10 on execution and demand completely different things of you - which is why the reasoning above matters more than the number beside it.