Even the person who got a smaller bonus is still doing pretty well.
But if you'd like, we could consider another case where we have two employees who have the same position. Since we're on HN lets say we have two junior devs. If the company decides it doesn't need both employees, one of them will be laid off. Obviously the person in charge will have to compare the two and decide which one to let go.