At the top end, which is where most consider the "power" to be, you won't notice much of a difference unless you lie to yourself - even the gps speed will lie to you because if you were lucky you might see 2 more miles per hour.
The hole shot will be better from the 50 so if you are looking to pop a skier out of the water it may be worth it.
If you generally run at about 3500 rpms or below the 50 will burn a noticeable amount more gas - if you tend to run them wide open most of the time, the 50 will burn a little more (like 1 more gallon per hour, or there about), but if you boat a lot it will add up over the season.
Also at lower rpms (below 3500) the 40 will be considerably "quieter", but again, if you are heavy on the throttle a 4 stroke is not all that quieter than a 2 stroke (regardless of what the glossy ads say).
The 50 would stand up to "some maintenance neglect" better than the 40.
Depending where you live the 50 may not be allowed on some lakes now, and others in the future.
Personally, unless the swap cost me "zero dollars net" I WOULDN'T do the swap.
A "general rule of thumb" is you need to increase the horsepower by 50% to get a 15% performance increase (in real speed on the water).
And to achieve performance from the boat "as designed" you should rig with "at least" 80% of max horsepower (so 75 for a 90 rating, 60 for 75 etc).
If you could strap on a 60 horse the performance increase (might) be worth the extra gas you would burn. And while the 50 might well outlast the 40 in the long run, the benefits really are minimal and depending on "how" you use your boat, it could end up costing significantly in gas for a couple of very small performance increases that you don't really need.
If top end speed is your ultimate goal, then go with the max horsepower your boat can handle. If you don't you will be asking about swapping the 50 in a year or so.