If u play smth five times right and five times wrong, you practiced playing it wrong as much as you've practiced it right so it cancels out in your muscle memory and you've gotten nowhere.
Or if you have greater intent, the five right times will be imprinted better in your mind/muscle memory, and you will have gotten somewhere. If this is true, then depending on how much intent you have while practicing you could either be incredibly efficient or wasting all your practice time