I think that all the advice that has already been given is good. Send or take a lovely gift before the day and explain that you have long standing plans, are sad about missing the party.... but you won't be there. 2nd birthdays are not remembered by the children and the parents should be adult enough to understand.
Go, have a good time on you pre-booked engagement!
Hugs