I rather spend one hour to write a script than writing one with AI. If I’m spending that much time, that is a clear signal that it’s important to get right or I’m enjoying the learning process.
As for when there’s a rush, I just avoid putting myself in those situations. If there’s not enough time, I advocate for a simpler solution, even hackish.
If it's not important, lorem ipsum, cheaply.