Only you know whether this is realistic, but if you think there are grounds for you to fight being laid off, I would go down that route. It might work depending on the sort of organisation it is.
Or go for the softer approach of appealing to your bosses kind side.
You’ll have to be the judge...