You'll never find the right way. But there are lot's of ways that are good enough - you can learn to get satisfaction in a good enough solution and move on.
And if you got it wrong, and it wasn't good enough, you can take another stab at it later with the wisdom gained meanwhile.
During lockdown I relish the opportunity to clean the house and cook because they are straightforward tasks where there are clear goals and I always achieve success.
Software for me these days involves too much despair and worry over whether things are done the right way.