In the UK I have known multiple people who were unable to take jobs that would have brought them out of unemployment, because of precisely this trap.
Can't recall the specifics but they were not stupid people and I believe they'd done the math correctly.