Manchester City manager Pep Guardiola says it is difficult to win by more than one goal if "the other team doesn't want to play", after beating Newcastle 1-0 at St James' Park.