I call this "resume engineering".
Some years ago, I decided to pass on a very impressive position at one of the then-hottest tech unicorns. I kinda liked the people, thought the tech was cool, but didn't see any way for the company to succeed.
As I thought, that company died, firing 100s of folks before the end.
It's been a few years, but a former colleague who took that job, managed to land an impressive title at my previous employer, above my level at the time... I have since left that company (unrelated), moved to a startup, and couldn't be happier.
My opinion is that titles don't matter. At all.
Compensation does matter, but you have to also value your happiness and factor that as well.