You have to remember, the ruble crashed 50% in the fallout of the Ukraine crisis. The Russians might be willing to sell the Su-57 at cost just for advertising purposes, but essentially, you have a heavy stealth aircraft that costs around a F-35.
Put another way, if the Russians were selling an F-22 equivalent for $20 million, it'd be foolhardy for the Chinese not to buy it, whatever the West might say about the success of the J-20 project. Given that the Su-57 is an import, the Chinese probably won't buy to the same quantities as they'd build the J-20, but it presents a highly affordable stealth fighter.
The J-20 and the Su-57 are both heavy stealth fighters. They carry out the same missions, are redundant to each other and do not complement each other. This alone would be a good reason not to buy the Su-57. Even the Chinese themselves would not develop another heavy stealthy fighter equivalent to the J-20. It's a complete waste of time and money. Keep in mind that the F-22 is the only heavy stealth fighter in the USAF.
Yes, a single unit of the J-20 might be more expensive than the SU-57, even though we have no solid evidence to support such claim. The cost of integrating the Su-57 into the Chinese system would also make this deal impossible to go through. At best, these two jets are the same and do the same things. Mission wise, mixing and matching the two would not bring any added benefit when compared with just making twice amount of one of them. However, mixing and matching the two would create a whole lot of issues that associate with attempting to integrate two very different systems. With every additional J-20 made, the PLAAF can immediately deploy them. On the other hand, they would need to spend years and countless $$$ integrating the Su-57 into their own existing systems, which is a nightmare in itself. And maintaining the integration in place will continuously cost them boat load of money in the years to come since they would need to keep training separate technicians for maintenance, separate software engineers for upgrading two different systems, different weapons/missiles systems, etc etc etc... A nightmare that they wouldn't be dealing with if they simply use their own planes.
The thing is, the Su-57 is almost ready to go. Developing a domestic low-end fighter would take time, which China doesn't have. And it'd be funny if future J-20Cs were LERX, Canard, LEVCON, Delta fighters, given the J-20's propensity to use every aerodynamic trick in the book.
China's J-20 has been ready for a few years and has been officially deployed with some significant numbers. If they need more stealth fighters, they can simply make more J-20's. The Su-57 is not an answer since, again, it is equivalent to the J-20 in their missions and design. It is a much better idea to make more J-20 than importing a completely different system, be it the Su-57 or something else.
If they need another type of stealth fighter to complement the J-20, they can develop their own like the J-31. Even if they decided to import another system, the F-35 makes more sense than the Su-57. Again, keep in mind that the Su-57 is equivalent to the J-20 in their missions...