Heretic of The Seventh Circle
The Rogue will probably do less damage, tbh, unless they can very reliably get a reaction attack and avoid needing to use their reaction for uncanny dodge, but will still outdo the ranger in nearly every other part of the game, unless the rogue ignores a given aspect of the game and the ranger focuses on it.It's not ranger vs paladin situations where I'm worried about strict overshadowing - what they do is different enough that they can be tweaked into specialties easily enough. It's ranger vs rogue where you've two sneaky dex guys with high mobility and expertise on their skills.
That one I don't have direct experience with, though. My only experience with a rogue and ranger in the same group, both are multiclassed.