Ask whether they enjoyed the game before discussing the result, and give them space — a conversation about performance, if it happens at all, works better later and framed around what went well.
Asking whether they enjoyed the game, before saying anything about the result or performance, gives a child room to process the match in their own way first. Many children do not want to talk tactics straight after a loss, even if they are happy to later.
If a conversation about the game does happen, it is usually better once some time has passed, and framed around what went well rather than only what went wrong.