It isn’t right either way but don’t be discouraged when your boss refuses to compensate you more then it looks like they’ll pay your replacement more.
If the number is high, all it means is that you were valuable and they need to replace you as soon as possible.
Either they are losing money and productivity or they’re lying about it in which case you’ve now left a toxic company.
Take encouragement, friends