Poland solved this problem pretty neat. I don't even remember using my credit card with ATM.
You open your mobile bank app, click BLIK icon and a 6-digit code is generated. You enter the code in ATM and you choose amount to withdraw. You accept the amount on your mobile phone and money comes out.
This is how it looks: https://www.mbank.pl/indywidualny/uslugi/uslugi/blik/