Are you using the same dictionary? I used the same technique, and got:
NARES
DOILY
TOUCH
And then VOUCH / COUCH / POUCH / GOUCH / MOUCH. NARES
DOILY
TOUCH
And then VOUCH / COUCH / POUCH / GOUCH / MOUCH.I found my code a bit difficult to debug at the end because it's still halfway decent at playing wordle. So, I fully admit I might not be doing it right!
But one thing I also did was allow it to pick a word it knew wasn't possible but could eliminate a lot of possibilities quickly.
https://qntm.org/files/wordle/words.js
These are most likely the same words in the implementation at https://www.powerlanguage.co.uk/wordle/ based on
["cigar","rebut","sissy","humph","awake","blush","focal","evade",
showing up in the minified js (which are the first 8 words in possibleWords in order). R A I S E (0 green, 0 yellow, 168 words remain)
B L U D Y (1 green, 0 yellow, 13 words remain)
C O U N T (2 green, 1 yellow, 2 words remain)
V O U C H (4 green, 0 yellow, 1 word remains)
P O U C H (5 green, 0 yellow, 0 words remain)[0] https://boardgames.stackexchange.com/questions/38366/latest-...