is our better to work as an independent contractor or an employee
Yes, it does make a difference if you are an employee rather than an independent contractor. California's wage and hour laws (e.g., minimum wage, overtime, meal periods and rest breaks, etc.), and anti-discrimination and retaliation laws protect employees, but not independent contractors.