I think you have it already.
Your original motivation was socially normal, and acceptable. The showing off part is also normal in that context.
You seeing that others may be hurt by you showing off something they do not have is your mind increasing its size and view of the world. You can still persue and aquire "cool" things but now you know that some may resent it or feel bad about themselves when you show them.
That is their personal issue if you are still just trying to include them in something you felt was a personal accomplishment. That is something they must overcome.
But if you are rubbing their faces in it or they think you are then it is hurtful and you must either make sure they understand your motives or just stop including them since they do not give you the benefit of the doubt when you try to include them.
As Mark Twain once quipped, history may not repeat itself, but it does rhyme.