Always best to leave a country/EU on the same passport as entering. But not all countries check/scan passports on exit
The passport you show the airline, to prove you are OK to enter the country you are flying to, does not need to be same as the passport you show immigration when leaving.
Never volunteer any information about dual passports, etc, unless asked.
[I have dual citizenship]