Hong Kong is part of China. Under the "One Country Two Systems" model, it has more 'experimental' and 'innovative' policies than the rest of the country (such as choosing their local government officials via democratic elections). But then again so does Shenzhen in other ways.
Hong Kong has never had democratic elections. It has elections but they are non-democratic, as the “functional consistencies” system rigs them in one side’s favor.
“One country, two systems” refers to Hong Kong’s separate economic and legal system, not to democracy.
"Rigs" is quite overstated. The system is quite transparent, and other countries have similar systems and yet we do not call them undemocratic. Such as the U.S., with the electoral college for presidential elections.