If you really like the company you're with, can you negotiate with them for a larger raise, something more comparable to the second company? In my experience, the higher the salary, the more is expected from you (i.e., all your free time, your soul, your firstborn, etc.). To some people, that's an acceptable trade, but to me, the lower salary is far outweighed by liking what I do and where I work.