Duolingo makes it hard to ignore - the whole app is gamified. It's like ignoring water while swimming in the ocean. Yes, you can turn off notifications, but sometimes they were helpful.
I think gamification triggers some innate feature of our brain, just like TikTok or Reels or mobile games, etc. It is designed to be hard to ignore.