When comparing, we must not discount the advantage that other cities have after witnessing what the Omicron did to Shanghai.Shenzhen did impose a 7 days lockdown that included shutting down the mass transit, factories and businesses. However, Shenzhen did allow a degree of freedom and most people didn't need to confine to home restrictly like Shanghai did. In a way, Shenzhen's ability to do mass testing and mass testing for 24 hours is what differentiate its from Shanghai.
Understandably, Shanghai is under tremendous pressure as the most internationalized city in China. However, it shouldn't excuse Shanghai initial failure to implement mass testing. Moreover, Shanghai was unable to cut off transmission chain and allow the virus spreading throughout China due to its reluctant to declare that Shanghai was having an outbreak. In addition, Shanghai was also slow to ask and accept helps from other cities and provinces.
If compare with other countries, Shanghai has done remarkedly well given the circumstance and the difficulty. However, Shanghai is one of the four top tier cities in China and it should compare with other Chinese cities. Its failure comparing with other top tier or even second tier and third tier cities mean that Shanghai has performed badly.
Overall I would say Shanghai did fail.
But we also have to give consideration that they had to deal with the many influential people with significant clout who demanded special treatment.
.