There's a 1959 Asimov short story where a futuristic government overrelying on automation realizes they can replace expensive computers driving ships and missiles with humans to save on expenditures.
[0] https://en.wikipedia.org/wiki/The_Feeling_of_Power