The premise is mistaken. California never “entered into conflict” with the United States. Instead:
There was no armed conflict between California and the U.S. Some Californios (Mexican-era landowners) resisted U.S. rule legally/politically (land claims, vigilante committees), and Native peoples suffered catastrophic violence from settlers/state militias—but the entity “California” sought and achieved statehood within the Union.
The “conflict” was Mexico vs. U.S. over California—not California vs. U.S.