China absolutely do want that. For one, reducing the world's dependence on Taiwan-made semiconductor will demotivate some countries from backing the island nation on its independence claims.
Yes, obviously on some level they want it, but they didn't start focusing on it until they were forced to, so obviously on some level they also didn't want it.