If a person is in a situation where they must choose between attending an important family event that conflicts with their prayer time or performing their prayer on time, what should they prioritize, and how can they handle the situation with wisdom and tact?