I don't believe other jobs are going to be as impacted as software engineering. Software is unique in that regard that the results can be verified quickly and easily fixed. On the other hand nobody is going to try building a building only to check if it's structurally sound because that would be absurd.
That's why I'm sceptical about the value of ai in software development. Much more can now be done but I don't see costumers paying more for it. The only way it can work is by laying off software engineers and saving money on their salaries.
Another thing to pay attention to is the margins of hardware companies like nvidia or micron. Hyperscalers are spending huge amount of money but the money mostly goes to the profits of hardware companies.
A counterexample that I can think of is agriculture. In the past almost everybody worked in it, now there are barely any farmers (relative to the overall population) producing much more food than before.
I think you're right in your comparison and that's way we'll soon see mass layoffs of software engineers. Software can now be produced with less people than before but I don't think there's market for more software.