Yeah, aircraft are as obsolete as tanks, the Ukrainian War showed us as much. And all major powers are only developing new generation fighters, bombers and tanks to keep the military-industrial complex busy. Or not.
A Javelin can take out a tank, but not replace it. A drone, or cruise missile, can take a ground target, a missile can take out aircraft, but they cannot replace their roles.
The reason tanks get destroyed left and right in Ukraine is a combination of bad docteine / tactics and deployment, the use of quasi obsolete models and the large scale use of last gen anti-tank weapons. The reason nobody has airial superiority is somewhat similar, near equal tech, decent air defence and comparable numbers.
As far as dogfights are concerned, they were declared dead prior to Vietnam. To the point fighter jets didn't get cannons anymore. Vietnam caused the creation of Top Gun, when the Navy realized their pilots were not up to par in airial combat. Stealth, and I am not a real proponent of that and still have to see the advantage it gives you, means one of the following scenarios will happen (assuming near peer adversaries):
- Gen 5 vs. Gen 4 (stealth vs. non-stealth, or rather low detectability): Gen 5 sees Gen 4 first, shoots multiple missiles, Gen 4 takes losses before they can counter attack -> Gen 4 retreats / is out of the fight (no dogfight) or Gen 4 is cought, numerically superior, closes in with Gen 5 and you have a dogfight
- Gen 4 vs. Gen 4: Everyone detects everyone at a large distance, missiles are fired, some losses occure (everyone can react so becasue they are not surprised), parties close in, you have a dog fight (assuming no onr retreats first)
- Gen 5 vs. Gen 5: Parties detect each other very late and close, you almost have a dogfight from the get go
So no, fighters aren't going away nor are dogfights.