Taxes for working remotely for a company in California, but living in Massachusetts

I recently got a new job in California(CA). I'm currently living in Massachusetts(MA) and don't plan to relocate till mid-late 2021. My wife is employed at a company in MA and will be continuing work here for the rest of 2021. Couple of questions:

 

- for w4 withholding should I withhold based on CA only - company allows withholding based on either CA or MA, not both. Would I get state tax credits for all/most of my MA tax owed since the CA state tax rate is higher ?

- would there be any issues filing jointly with my wife given our complicated situation - would her income get taxed at the CA rate in any case ?