For myself, I ended up at deadlifting.
Even though the range of motion through the legs is less than squatting, I would still develop quad, and posterior chain strength. While squatting would also lead to upper body mass due to total body loads carried, the deadlift would more directly hit and promote growth, both in my back and core.
Chest would also be hit more with deads due to the load carried by the arms, and the pecs being under strain holding the bar at lockout.
An aspect that I considered was this. I would be able to regain any lost ground in the full squat sooner after concentrating mainly on deads, than if the role were reversed. It would take much longer to regain deadlift strength if the move were not done.