I don't think that's how it was working out. The US had started extradition proceedings and had told Hong Kong to arrest him. Hong Kong was required to do it based on the treaties with the US. They ended up giving Snowden a small window to leave by using a technical excuse but that wasn't going to last. If he had stayed in Hong Kong he'd be in jail for months and then be extradited to the US.