The irony is - and I have been bashed and insulted from the usual suspects so often for saying it; anyway, still once again:
Realism and nationalism are incompatible. You can choose to ignore certain things to reduce your troubles.
What Turkey needs is a stopgap engine for a few years until its domestic powerplant is ready, in the same way China needed the AL-31 for its early J-20s. In that outlook, the WS-10B would work fine as its comparable to the F110s.
The two are incomparable.
China's use of the AL-31 engine in early J-20 fighter jet testing was, in fact, "illegal."
When China acquired the Su-27 fighter jet from Russia, it also received the AL-31 engine overhaul and maintenance system. Since then, China has been conducting in-depth research on the AL-31.
Russia's export of AL-31 engines to China is strictly limited to the number of spare engines under the Sino-Russian Su-27/J-11 contract.
However, through in-depth research on the AL-31 engine, China has improved and optimized maintenance procedures and produced some parts that are superior to the original ones. These measures have ensured that the actual operating time of the AL-31 engines on China's Su-27/J-11 aircraft far exceeds Russian standards. This has resulted in China possessing a large number of additional AL-31 engines.
Russia has never permitted China to use the AL-31 engine in the J-20, J-11B, J-15, or J-16. They have also not provided any technical support for these "illegal uses." Instead, they have condoned this behavior. (Later, Russia breached another Sino-Russian military trade agreement. However, Russia did not want to return China's advance payment and liquidated damages. Therefore, Russia provided China with a separate batch of AL-31 engines to offset part of the payment. These engines had no restrictions on their use, and China was free to use them at will.)
Through reverse engineering, China has already achieved the technical capability to completely clone the AL-31 engine. However, China and Russia have different military tactical thinking. Therefore, we combined these technological research findings with other research results to develop our own turbofan engine. This is how engines such as the WS-10 and WS-15 were born.
I don't know how you came to this conclusion. From what basis? because Turkey is NATO, thus its a "potential hostile country"? If thats true, why is China inviting Turkey to SCO summits, do you know of any NATO states being invited there?(maybe Hungary under Orban), and Why is Turkey being looked at as a perspective BRICS member? Turkey does not have hostile relations with China, infact China is investing in Turkey, case in point a BYD battery factory in Turkey, something it forbid BYD to do in the EU. So clearly Chinese policy is not uniform.
Military, economic, and diplomatic issues are three separate issues. At least, they are separate issues in China.
I don't want to comment on China-Turkish relations here.
You can use the China-Indian relationship as an analogy for the China-Turkish relationship. From the Chinese perspective, there are some differences in details, but they are on the same level.
There are many irreconcilable contradictions between China and India, but they also cooperate in many areas. The same is true for China and Türkiye.