Canada has these guidelines: https://www.canada.ca/en/revenue-agency/programs/about-canad...
So rounding for cash is a different problem that rounding money in general.
Technically, you can use them for payment, they are still valid money; but the price will be rounded to 5 cents when paying in cash and you won't get them in the other direction.
It's been years since I last saw a eurocent coin, but it's been eliminated by permitting businesses to remove the need for them, not because they're being phased out.
You may want to tell that to my wallet, as well as the payments I make with them. There's a cool 37 billion coins outside in the wild, so you're going to find them rather easily throughout Europe, even if your own country has stopped using them.
Check for more: https://github.com/eriksencosta/money/blob/trunk/docs/usage/...