If you fly to Hong Kong from other places, it is more convenient to change at a bank in Hong Kong. The exchange rate of professional currency exchange shops is slightly lower.
China implements foreign exchange control, and there are many procedures for banks to exchange money, and the queue time is long, but the exchange rate is slightly higher.