It depends how long the backlog is and the features Product are asking for - tech debt might be easier to fix, but its just as hard to prioritise in a lot of places.
I'd also add that AI tends to find a way to churn out 1000-line changes when a judicious 3-line change would have served two years ago... i.e. teams risk drowning in PRs for features nobody cares about.