You’ve got it reverse. You can transfer H1b to another company (without going through lottery again) but you cant transfer L1 visa to another company. L1 visa is used to transfer an employee from a foreign branch to the US branch of the same company, once in US if they want to change the company the new company has to sponsor their H1
Depends on how you look at this. L visas are not subject to lottery, but then that brings much more scrutiny from USCIS. Also, you are tied to your employer, you cannot change jobs easily. H visa, once you get it by lucky draw, gives you much more flexibility. And it's perfectly fine to use H-1B for intra-company transfer.