Yes, the F-35 is packed with expensive avionics, which is part of the reason why it is so expensive. It has cameras mounted all over the plane that link to the pilots helmet, allowing him to see through the aircraft. The F-35 also has an integral targeting pod for guided bombs.
The US defense industry often uses big ticket items like fighter jets and warships to develop a variety of technologies. They then make money by commercializing some of these technologies downstream, where they find applications in civilian goods. Defense contractors try to throw in as many “add-ons” to American defense systems to both increase their profits. They also figure that the more add-ons they put in, the more likely one of them will find a profitable application in the civilian world.
The Su-57 is a bit more of a budget fighter. It doesn’t have all of the expensive add-ons that the F-35 does. However, that doesn’t mean that it is a bad fighter at all. It is actually a very well designed fighter. It did not have to make as many design compromises to accommodate all of the various sensors and add-ons, that so delayed the F-35 and raise its price tag.
The Su-57 is probably a bit better than the F-35 at the air-to-ground role, since it has a much larger and better-designed internal weapons bay, allowing for it to carry stand-off munitions internally. The Su-57 is designed to accommodate Kinzhal hypersonic missiles, giving it capabilities of a strategic bomber, while the F-35 is largely relegated to gravity bombs.