I think the best analogy I can give for doing electronic labs online is the way cisco certification tests were provided in a very limited simulation presumably using regex's to see if you get it "right" (at least this is how it was a decade ago) vs getting time at an actual router command line. Its a different experience to do something real vs a simulation with pre-determined conclusions and situations.
I'm struggling to think of a programming analogy, comparing getting a real live REPL to getting some kind of not-REPL training environment. I don't think there really is anything that bad in all of program writing.
What simulation is really good at is optimization. Its a useful skill but not the only one. Maybe a good programming analogy would be ripping all the "write a program" assignments out of a CS curriculum and replacing them all with profiler exercises. So rather than writing your own bubblesort and quicksort, you'd just run a profiler on someone elses sorting libraries and compare the numerical results to get the expected result from the book.
A really good car analogy is I'm old enough that when we did Drivers Ed we had simulation where driving scenes were projected on a screen and we optimistically pretended to drive a car, vs the behind the wheel section of drivers ed where we actually drove a real car around. Its kind of useful, kind of, but I don't think you can really learn to drive a car by watching carefully crafted movies of someone else driving.