I can understand why this would be frustrating, particularly when you're regularly toggling layers to compare different versions of artwork.
As far as I'm aware, InDesign has treated layer visibility changes as undoable actions for some time, and I don't believe there's currently a preference to exclude them from Undo/Redo history, as Photoshop allows.
The "Paste Remembers Layers" setting is unrelated, so changing that won't help.
I wouldn't necessarily classify this as a bug unless we can establish that the behaviour has changed between versions. However, I do think there's a reasonable case for a feature request to make layer visibility changes optional in the Undo/Redo history.
Your workflow is a good example of why such an option would be useful. Even with a large history capacity, having to step through numerous visibility changes just to undo an actual artwork modification isn't particularly practical.
I'd suggest updating your UserVoice report to request an option to exclude layer visibility changes from Undo/Redo history, rather than asking for the existing behaviour to be fixed.
