> if the AI can just write really good code in C that doesn't exhibit any of the issues that rust protects you from?
"if"
If it could you wouldn't need to use Rust. It can't, qed.