Well the santa cruz is going to be a better performing bike, but it’ll be 4 times the price, so you would expect that.
Will you be able to tell it’s 4 times more expensive when riding? Probably not…but things such as weight, brakes, gears and suspension performance would be obvious differences, that you would expect most riders to be able to notice the difference.
Will you have 4 times as much fun? Possibly not. Will you end up spending a fair amount of cash on the bossnut to make it closer to the 5010 in spec, probably. I would still be buying a hardtail if I had that amount of cash to spend on a bike, as the all around spec will be so much better. Alternatively, look second hand, you’ll get something a lot nicer than the bossnut.