You're stuffing shit into my mouth. I'm not saying that the J-20 is a failure, I'm saying that if the PLAAF makes a significant buy of the J-XY type (as opposed to the PLANAF buying it), it implies that the J-20 is a failure. In other words, the PLAAF could very well have done a F-22 / F-35 clone instead of the J-20 (and tbh, a medium-weight fighter using two WS13-class engines would have worked better than a heavyweight fighter).
As for the J-XY and AMCA being F-22/F-35 clones, consider the planform alignment and design decisions made. Sure, the subsystems are substantially different, but they're basically taking up American solutions and American concepts of what a 5th gen should look like.
===
In either case, if we're going to discuss Su-57 procurement, here's the funny fact. The Chinese internet seems to keep on trumpeting a 700 million RMB figure, which comes out to about 100-110 million USD right now.
The initial procurement deal of the Su-57 puts it at 180-190 billion rubles for 76 units. That comes out to 2.36-2.5 billion rubles a piece.
At present exchange rates, that comes out to 31-33 million USD per unit. In other words, there's roughly a 3:1 cost advantage for the Su-57 at stated prices.
When you look at the J-XY, the dimensions for the FC-31 (and the J-XY is supposedly enlarged from the FC-31) are roughly (and I notice when I attacked Blitzo on this he dropped back very quickly) 17.6 x 11.5 meters. That's roughly 25% smaller than the J-20 in area. If the J-20's current price is 100 million, it's implying a 75 million flyaway cost. Even if we say, double the Su-57's costs to account for subsidies and the export profit margin, the Su-57 still has a significant cost advantage and is likely a more capable platform than the FC-31 in everything but stealth.
Then, we have to consider RMB appreciation. I'm expecting the RMB to move toward the 5:1 point respective to the USD, given China's economic development and the strategic benefits of being a major consumer (i.e, Japan and so on are bound to China by export dependency as opposed to the United States). That'd be another 30% appreciation in the RMB, although stuff closer to a 10-15% might be more realistic given that the dominant trend is the weakening of the dollar and the Russian ruble will appreciate as well.
===
In short, the PLAAF is likely to buy the Su-57 provided the Russians can provide a sufficient cost point for the PLAAF to bite. If they can produce a heavyweight stealth fighter for dirt cheap, it'll have limitations compared to the J-XY, but the sheer cost savings makes a PLAAF export purchase of the Su-57 viable.
However, we do need to wait for additional information on the Su-57's costs. The Algerians, for instance, have expressed interest in buying the Su-57, but the contract level (135 million per unit) seems unusual given the Su-57's cost of production and the Su-35's export price (100 million a unit to China, including spares, of course, for a low-volume purchase) The J-20, on the other hand, is barred from export, so it's unlikely we'll get more precise information on the J-20's cost structure.