I have to agree with @Duggle. A simple DCDC can simple erase this problem of using basic voltage regulators since DC-DC convertors are very cheap and have very few losses because they can be made efficient because of the volume for circuitry available to them. Anyways, if you still have to get 5V from 12V using a voltage regulator, I’d suggest getting an LF series IC because of their power efficiency. A small driver circuit might be required but well, everything has its pros and cons.
pcb design