head to head
Neither is simply harder - they are hard in different places. Pathfinder: Wrath of the Righteous demands more variance; Portal demands more execution.

Optimization · Pure Optimization
A mythic-power fantasy where stacking mythic abilities and prestige chains produce near-godlike optimization results.

Optimization · Pure Optimization
The portal-gun puzzle game whose solutions are everything.
Pathfinder: Wrath of the Righteous leans Optimization (Pure Optimization); Portal leans Optimization (Pure Optimization).
Portal leans clearly harder on execution.
Pathfinder: Wrath of the Righteous
Real-time-with-pause eliminates any twitch skill requirement
Portal
Portal placement timing modest.
Pathfinder: Wrath of the Righteous leans a little harder on reads, though the gap is small.
Pathfinder: Wrath of the Righteous
All enemies follow scripted AI; crusade campaign is deterministic
Portal
No adversary modeling player.
Pathfinder: Wrath of the Righteous leans clearly harder on variance.
Pathfinder: Wrath of the Righteous
Mythic ability unlock order and hidden enemy resistances add unknown layers
Portal
Deterministic chambers; no randomness.
Pathfinder: Wrath of the Righteous leans clearly harder on optimization.
Pathfinder: Wrath of the Righteous
Mythic path stacking and Lich-specific build chains reach absurd optimization ceilings
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.