This question already has an answer here:
I hold Panamanian and Chilean citizenships. My Australian visa is with the Panamanian passport but I want to book with Cathay Pacific, with a layover in Hong Kong. Panamanians need a transit visa, while Chileans do not. Can I make the transit in Hong Kong with the Chilean passport and then enter Australia with the Panamanian passport? I am traveling from the US (where I currently study and my student visa is on my Panamanian passport too).