The Russian approach to their defense industry is pretty rational IMO: they do small batches of extremely high-tech stuff mostly to keep their engineers active and to improve their institutional knowledge. Then they spin off iterative improvements and upgrades to the bulk of their legacy military hardware. Perfect examples are the T-72B3M and the Su-35. Hell, the Su-57 itself, if you look carefully, is basically a heavily-stealthed Su-27 planform.[1]
And they can do this because their MISSILE tech is absolutely first-rate. Russia understood the "payloads over platforms" mentality long before the US did. And their national defense posture is basically "We have nukes to deter anyone who is an existential threat, and everyone else can be beaten by our leftover Soviet stuff."
[1]https://migflug.com/jetflights/wp-content/uploads/sites/4/20...
The Russian Su-57 is plagued with the same kind of issues, made much worse by the fact that Russia is no longer the superpower it was. The difference between the US and a superpower in actual decline is that the US can throw almost unlimited funds at the F-35 program and Russia can't. The real mark of a superpower isn't that it makes clever things but that it can afford making stupid things.