It obviously sucks and the outcome was to be expected but what alternative would you propose?
Continued British control would have meant maintaining territory acquired through the Opium Wars which China considered illegitimate. Given China’s position and growing power that likely would have required serious military confrontation. From a post-colonial perspective extending colonial rule also seems hard to justify. What alternative outcome do you think was realistically achievable under those conditions?
I'm not disagreeing with you and an independent Hong Kong would've been nice but I'm talking about realistic options. Even without any military action Hong Kong was and remains dependent on China and I don't see how it could survive without it.