Only partially: Rejecting the request won't get you killed. You also have the option to close your company to avoid jail, see https://en.m.wikipedia.org/wiki/Lavabit as a good case study.
Thus, I would prefer the US to China in this regard.
As a purchaser of equipment, the risk is basically the same though. It's just about which government you want to trust with your data.