head to head
Neither is simply harder - they are hard in different places. Icewind Dale II demands more variance; Portal demands more execution.

Optimization · Pure Optimization
A 3rd Edition ruleset combat puzzle where multi-classing and feat selection unlock dominant strategies.

Optimization · Pure Optimization
The portal-gun puzzle game whose solutions are everything.
Icewind Dale II leans Optimization (Pure Optimization); Portal leans Optimization (Pure Optimization).
Portal leans clearly harder on execution.
Icewind Dale II
Real-time-with-pause negates twitch requirements
Portal
Portal placement timing modest.
Icewind Dale II leans a little harder on reads, though the gap is small.
Icewind Dale II
Scripted enemy routines offer nothing to read or predict adaptively
Portal
No adversary modeling player.
Icewind Dale II leans clearly harder on variance.
Icewind Dale II
3E feat combinations and hidden enemy resistances create unknown-information layers
Portal
Deterministic chambers; no randomness.
Icewind Dale II leans a little harder on optimization, though the gap is small.
Icewind Dale II
3rd Edition feat optimization and multi-class architecture dominate success
Portal
Pure puzzle-solving optimization.
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.