Zig Ziglar:

If you learn from defeat, you haven’t really lost.