Although the first guess looked bad (one out of position consonant and no vowels), it set up the second guess. In guess 2 it wasn't optimal to repeat the T in position 4, but UNITY scored all of the unguessed vowels, and used N, which is a frequent consonant.
After hitting four of five on guess 2, with a green N in position 2, there were few possible solutions. If I all three of I, T, and U were after the N in position 2, the options had to be:
Based on this I tried INUIT, but to my great surprise WORDLE
rejected INUIT as a word. So that didn't count as a guess, and it also meant that that the word had to start with IN. So the options were
Among those options, INPUT looked like the only possible answer.
/SPOILER]