PID is a 100% reactive control. It is all based on error.
The other kind of control is predictive. In general, they use some kind of model to predict future error and then take action to reduce the future error. In theory, reactive control ALWAYS has to oscillate, but you can solve this with some kinds of forward-looking control.
The best robots in the world all use some kind of model-based prediction. By “best,” I mean the Boston Dynamics “Atlas” and Tesla cars. I rented a Tesla last week for a 1,300-mile road trip, and I used the parallel parking feature many times and let it self-drive on some curvy mountain roads. It was clear the car was “thinking ahead.” The algorithm looks at the desired location (near the curb) and the current location (in the street) and then uses a broad search to reduce that error. Both Atlas and Tesla use MPC. This is a not-to-bad description:
https://stanfordasl.github.io/aa203/sp2223/pdfs/lecture/lecture_11.pdf
In robotics, MPC is used at a high level, and then a motor controller is still likely using nested torque and position PIDs.
In any case, yes, I agree PID is very limited and even in theory can’t be perfect, as it depends on there being some error.