I agree with this analysis. Another important factor is: How likely will this code actually be used and drive business value?
If very likely, then you should invest in making the code high-quality. If unlikely, then you should half-ass the code strategically