Someone quoted some statistical stats about two pair to me one time that I will never forget.
1. Two pair is the winning hand in poker.
2. Two pair is also the most losing hand in poker.
These are not trick statements and they don't contradict themselves
It is just one of those
hands that looks good and normally is (see 1) and that is why for most of us it is also hard to let go.
I think I would have made same decision to go with my top two pair as well.
Especially if the flop was rainbow suits.
When you opponent has a pocket pair the
odds of them flopping a set are 1:22 so when you opponent has poker pair and you flop top two you are going to be ahead 21 out of 22 times.
Keep grinding and good luck!