In some countries yes. In the UK if you want to make 20 or more roles "redundant", you have to group employees by reasonable groups, rank them by reasonable measures, and then let go those at the bottom. You also have to consult with employee representatives at each stage. Then, employees are entitled to minimum compensation amounts and that isn't taxed in the normal way. Much of Europe has similar or stronger processes.
I think another key aspect of "redundancy" in the UK is that it is a claim that the person's role is no longer needed, and hiring someone else for that role soon afterwards can be seen as invalidating that claim and thus invalidating the dismissal.
Which is why new roles are (or should be) advertised as slightly different - for legal protection against former employees taking you to court for fake redundancies.