Upvote:2
The booking is for the airways company. They just want some way to make sure who are you (in order to avoid you reselling the ticket, or that someone else tries to use your ticket without your permission).
They do not care at all which ID you use, as long it serves its purposes.
Passport controls (if any) will be made in a complete separate process.
Upvote:2
If a country is involved which does not accept the EU ID card, use your passport.
The airline may not mind but if they need to give API information it has to be a passport, and when they check your passport or ID card, it has to be valid for the border forces of both countries involved (although if there is no exit checks they might not note your passport number going out.)
It is true that the border checks are separate from buying your ticket, but the airline will need to check sometime you have the right paperwork, including visa if needed.