it depends how long from your main panel.
if its close, i think its fine with either hardwire tesla charger or 14-50.
if its far, tesla hardwire is cheaper since it use 6/2 wire instead of 6/3 required for 14-50. It give you flexibility of connecting RV, same wire can also upgrade to 60A...