Not only do the two pilots on the plane not have the same food, but they are not allowed to share their food with each other. This was done to prevent one of the pilots from getting food poisoning. That's true. But poisoning here also includes allergies to a particular food, etc., and is specifically targeted at non-poisoning for safety reasons.
There are usually two pilots in the cockpit of an airplane, one to control the plane and the other to observe the data. If the pilot flying the plane has a special condition and suddenly goes into a coma and is unable to carry out his normal duties, the other pilot can quickly take control of the flight. If both pilots eat bad food, it can cause big trouble. To rule this out, the two pilots eat different foods, or at least they don't eat at the same time.
The Federal Aviation Administration does not mandate this practice, but most airlines have their own rules. Pilots are usually discouraged from eating raw fish and other foods before or after a flight to avoid the antics of "Airplane Masters. Pilots and passengers eat different foods. However, all meals are provided by the same flight caterer. Pilots and captains also eat different food to prevent them from getting sick in special situations. This is a serious matter.
If one of the pilots becomes ill, the crew will immediately arrange a specific crash landing strategy. In addition, all pilots are required to undergo rigorous flight training to deal with a "pilot incapacitation event" when the other pilot is unable to continue the mission. The healthy pilot will then continue to fly the airplane to find and land at the nearest suitable airport as soon as possible.