Non-idiomatic Elixir code generated by AI, often defaulting to imperative loops or manual error handling, can lead to substantially poorer performance and higher memory usage compared to Elixir's optimized `Enum` module functions and `with` statements.