I think this is a perfect way to look at it.
And even though it ended, you learned something in the process, and hopefully she did too!
You will for sure find someone who is better suited to you (and you to her!)
Especially since you have this attitude!!! :)