Some context:
I've worked at my current company for about 2 years now, as a software developer. It is a medium to big company, with a solid grasp on the market. Also, it is a really cool workplace and in pretty pleasant in general, expect the pay. My initial salary was about 30% off the average where I live. Recently, I started looking for other job opportunities and got a offer to join a startup. The salary there is right around the average, so 30% more than my current salary.
With this offer, I approached my manager and told him that I was considering leaving, and that the money was the decisive, and only, reason. He quickly asked for a number and said he would get it done by the end of the week, which he actually did. He said that i was a very valuable member to the team, and that they could not afford to lose me for something so small as a raise. During the weekend though, I received another offer from a different company, and the salary is around 30% more than I get even with the raise. The company is regarded as the best tech company to work on Brasil, and I'm considering as an option. Will I burn a bridge by leaving right after asking for a substantial raise so i would not leave?