Only at low levels. not only at combat.Take away hunters mark and you are left with inferior fighters without heavy armour proficiency.
Rangers are boring because 5e has no job for them to do (and doesn’t need a job for them to do).
But Ranger has better skills from level 1, more support ability, more utility, more control, more AOE.
And once you get to level 5, the rangers damage gets closer to a fighter while keeping all of the above.
Again if the gripe is that the Ranger does not fight as well as the fighter well of course. The Fighter is called the fighter the main point of it is to fight. The range should not outshine the fighter at damage and tanking.
But if you actually want rangery stuff the ranger does it pretty well. The real issue is that Wizards of the coast did not support Rangers with additional rangery spells over the 10 years of 5e.