The Shar-Pei's temperament keywords are loyal, independent, reserved and calm, and all four are accurate in a way that suits some households very well.
This is a quiet, dignified, self-contained dog. It is devoted to its own family and largely indifferent to everyone else, it does not seek attention from visitors, and at 2/5 barking it is one of the quieter breeds here. Its 2/5 exercise rating and 2/5 energy make it genuinely low-demand day to day — a couple of moderate walks and it is content — and its 4/5 apartment rating follows from that.
The 2/5 with strangers is guardian reserve rather than nervousness in a well-bred, well-socialised dog. It was historically a property guardian, and the modern breed still watches rather than greets. Without deliberate socialisation, though, that reserve drifts toward suspicion, and a 50 pound reserved dog that has decided a stranger is a problem is a serious matter. Structured, positive exposure through the first two years is not optional.
The 2/5 trainability reflects genuine independence rather than slowness. Shar-Pei will consider an instruction, decide whether it is worthwhile, and frequently decline. Training works when it is short, well-paid and consistent, and it does not respond to heavy-handedness — this is a breed that becomes obstinate rather than compliant under pressure.
With other dogs both breeds rate 2/5, and the management is similar: no dog parks, careful neutral-ground introductions, no on-lead greetings with strangers' dogs.
The Pit Bull's 3/5 with strangers and 4/5 with children make it the more sociable of the two with people, and its 4/5 trainability makes it markedly easier to build reliable behaviour on.
Both breeds also encounter restrictions: bully-type dogs frequently, and Shar-Pei occasionally, on insurance and tenancy lists. Check in writing before committing.