After a loss, the final miss or knockout may be all you remember. Go back to one turn when you made a choice. Note the active Pokémon, their HP, and the opposing moves you had actually seen.
Suppose you chose Earthquake because you noticed
Corviknight’s Steel type but overlooked its known Flying type. It stayed in and took no damage. With no grounding or immunity-changing effect, that was a mechanic you could have checked before choosing. Next time, check both types before attacking.
An unexpected response is different. Ask whether you considered that possibility and what you could do if your prediction failed. Do not demand that your earlier self knew an unrevealed move.
A missed attack needs another comparison: what alternatives were available, and could they accomplish the same job? A random failure does not by itself prove a bad decision.
Begin with one note: what you knew, what you chose, and one action to try next time. If the same problem keeps returning, then investigate a possible team weakness.