Are there good ways of achieving this in tools like Blender and Illustrator? My best result so far in Illustrator was to round corners first and then apply a small amount of smooth but it looks a bit wonky.

It should work to drag the off-curve nodes so that they touch where the corner would be if the rounded rect was a square/rectangle.