Derailleurs are hard to debug.
The rear derailleur on my cycle wasn't shifting as expected, and so I spent an afternoon following YouTube and adjusting its limit screw and barrel adjuster to no avail.
Finally gave up and took it to a shop, the mechanic took the cable out of the housing, wiped it down, greased and put it back in; the derailleur starts shifting normally.