Why would it be different this time? The Russians tried to impose godless communist rule over the Afghans before. It ended badly.
The Taliban would look at how the Chinese are treating the Muslim Uyghur population there, basically housing them in concentration like camps and they'd not be viewing the CCP in a positive light.
https://edition.cnn.com/videos/world/2021/08/19/china-taliban-allies-culver-lead-pkg-vpx.cnn
China teams up with Taliban in unlikely partnership
CNN's David Culver takes a closer look at the budding relationship between the Taliban and China.