…but you didn’t.
You did what you did because you knew what you knew.
Decisions can’t be made with a foreknowledge of the outcome. They’re made with the knowledge you have in the moment of choice.
If your choice didn’t create the result you wanted, well, now you’re smarter. Now you have a better understanding than you did before making the decision. Now you can make adjustments that will allow you to more effectively create what you desire.
Learn from your mistakes, but don’t confuse personal development with feeling guilty about something you didn’t know in the past.
Making a factual error in judgment is not tantamount to committing an unethical act.
At least that’s the way I see it.