Advanced bevel of a rounded corner I've been racking my brain about this. I've been trying to model this relatively simple handrail but there is one part where I am just stuck. Here is the reference:




Now I sort of tried to bevel the corner of a cuboid. But I only get so far:



I kind of faked the desire result with a cylinder and a sphere, but I am sure there must be a more efficient way of getting there:



Grateful for any input! Thank you in advance!
Of course there is a simple way :)


Use Bevel modifier set to Weight, and with  Clamp Overlap
set Bevel Weight to 1 for selected edges.  
It will result in some double vertices, you can use the Weld modifier to get rid of them.