Well,
If you don’t have a choice but to do the leg press, I guess there is your answer.
However, any squat that gets your knee entirely flexed (bent) with load and control will always be the best for growth and many other great benefits.
The leg press works the majority of your legs in a middle of the road range. It’s a range where they are strong. Plenty of benefit there. However, getting your legs to an extreme where they are vulnerable and owning that range is a big part of training for Hyoertrophy.