In many countries, people have already won a similar fight with printing press, press censorship and encryption. I think there is a reason for optimism (of the will).
If AI can code, and empower individuals to do it on a local device, it is already smart enough to educate masses on the matters of their self-interest, such as freedom and solidarity.
I don't think the powers will be able to gatekeep it. There might be some grief but overall human freedom will prevail.
I doubt AI can educate the masses simply because the masses would have to prompt it to educate them. Almost no one in my social circle knows, let alone understands Google’s recent work on pushing web attestation, or any other tech company’s power plays enforced on us. They are people blindly hitting accept all in every banner that pops up in their online journeys or use chat apps that blatantly spy on them.
They don’t know what they could have or why the new captcha is funny, thus they can never come up with a prompt that leads to them being educated on the matter. They would have to know that they don’t know and since there is no public discourse for such matters in their Facebook timelines, their thinly right wing digital news outlets and their Viber and what’s app chats they will never know that they don’t know.