Linux on ChromeOS is probably better because its file system is separate. Files and directories must be explicitly shared from the main OS.
I think both have the ability to open windows on the main desktop so you can run graphical IDEs and the like in the VM which is nice.