> When I ask AI to write code with similar functionality, it's about 10x more code.
Using AI is still a skill in 2026. You do not have to one-shot it, you can prompt it to reduce the amount of code e.g. by dismissing unlikely edge cases or pointing it at some preexisting reference code.