Fair enough - a lot of the time people have to take bad jobs. If you can't move due to family, if the economy is bad or if you have no leads for some reason you have to take what you can get.
But if you can pick, pick something you actually want to do, if that leads to great things - wonderful. If it doesn't three years of your life isn't up the chute.
These may be the last three years of your life. Remember that.
To continue to develop as a researcher and build up your research skills, publication portfolio, and network, ready to move into industry.
If you do an ok PhD you could spend a couple of years as a postdoc refining that research and building on your foundation to really making a name for yourself and then apply to industry at your peak into a senior position.
Getting hung up on title in Pharma is not a good move. It isn’t uniform at all.
It does depend on the role though. If the company is hiring someone who is a world expert in your specific research subject it makes sense to have stayed to become the world expert. But I think that's unusual. Much more commonly people leave academia and go into more generic "data science" type roles in which case extra postdoc years don't really help you.
Of course if you enjoy the research and don't mind the opportunity cost then there's nothing wrong with staying.
In tech, we typically hire PhDs and postdocs in at the same level. Sure, you’ll probably advance a little faster with experience from a postdoc, but not faster than if you started straight out of your PhD.
Postdocs are preparation for academic research in a specific field. Most industry jobs don’t work like that, and most PhDs don’t end up working in the subfield of their PhD, either.
Don’t mislead yourself into thinking that a postdoc is a good default option for a PhD graduate. Way too many people do postdocs, and end up looking a little foolish when they look for industry jobs later.