If you care for performance, start graduating ORM and learn to write performant SQL yourself.
Ofc in the end a raw sql string will always give an edge (see Dapper).
It's not an either/or.
Often I'll use the ORM for saving, and SQL for retrieving.
If i was a dev i would appreciate some data guy’s opinion in queries, indices, etc while my db crashes every now and then, but it’s either a power play/politics thing to ignore the new guy or the ‘i know activerecord/hibernate/kafka/whatever’ thing and i won’t bother sith anything else that will solve the problem.
In my opinion bad performance comes from inadequate knowledge of a sharp edged tool