The more alike the substitutes, the smaller the rise that drives buyers away
Suppose two bubble-tea shops sell much the same milk tea, at 12 yuan a cup each. If Shop A goes up to 13 yuan, only people who really care about one yuan switch to Shop B; at 18 yuan, most people switch, because Shop B's cup is much the same and not worth 6 yuan more. But if the only thing you'll drink is Shop A's mango-pomelo sago, at 18 yuan you'll probably stay. The more alike the two shops are, the less you give up by switching, and the more easily buyers leave.
Complements sell less along with the main item
When phones go up in price, fewer people buy phones; a phone case is only useful when you have a phone, so fewer people buy cases too. To tell which relationship two things have, see whether people buy more or less of one when the other goes up in price: if they buy more, it's a substitute; if they buy less, it's a complement.
Substitute or complement depends on what it's used for this time
Bread and rice replace each other when you're choosing a staple; bread and cheese go together when you're making sandwiches. The week bread went up in price, the people choosing a staple cooked an extra pot of rice, and the people making sandwiches bought less cheese.
In the first few weeks after a price changes, if buyers can freely switch what they buy, it's easiest to see which things are substitutes and which are complements. When buyers can't switch, this way of judging doesn't help: the subway can replace a taxi on the way to work, but not a van to move a sofa; and while the contract hasn't run out, you can't move your phone plan either. Taking "often bought together" as a sign of complements is a common misreading: when year-end bonuses are paid, people have more money, and two completely unrelated things can sell well at the same time.