You will not be able to go landside in HKG unless you are a resident or otherwise qualify for an exemption. Once landside, in most cases (unless you qualify for an exception) you will have to go to an off site testing center, wait for your results to come back, and then quarantine for 14 days. So you absolutely won't want to plan on going landside on a transit.