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 is pretty pleasant in general, except the pay. My initial salary was about 30% lower than 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%42% 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 for in Brasil, and I'm considering them as an option.
Will I burn a bridge by leaving right after asking for a substantial raise so I would not leave?