I recently joined company X. They want to send me on a business trip for training for a few weeks overseas (standard for all new hires), and are coordinating with me to plan this trip. They will soon buy plane tickets and make other arrangements.
At the same time, I have a verbal job offer from company Y and they are preparing my formal offer. Their offer is much better than my current compensation, so I'm very interested in accepting their offer. They are flexible on when I would start.
I'm wondering how I should handle this, given the possible scenarios. I have not spoken to X about my offer from Y, since I have not received a formal offer. On the other hand, I don't want to leave on a bad note wasting company X resources. What if I get the offer after they buy plane tickets? Or even during the trip?
Also, if I'm considering staying with company X (assuming they can match Y's offer), should I just go on this trip (regardless of Y's offer), to get a better feel for their company? Again, it would look bad if I left soon after the trip.