The trick is making guesses that you know are incorrect to rule out multiple digits at once.
I don't really enjoy that at all personally, but it is a thing one could do.
I don't guess impossible words in Wordle either :)
That's a best case of 2 additional guesses and worst case of 3 (expectation of 2 1/3) which is better than your strategy, which has a best case of 1, worst case 6, expectation 3 1/2.
Then you can see which number turns purple or use 8 if none do.