Scenario 1:
$$f(x):=\int{\cos(x)dx}\tag{1}$$
Scenario 2:
$$g(x):=\int_{a}^{x}{\cos(t)dt}\tag{2}\\ [\text{edited after seeing @hardmath's comment}]\\ [\text{a is a constant}]$$
Comments:
Both $(1)$ and $(2)$ are functions. An antiderivative/indefinite integral is a function, while a definite integral is a number. So,
$$f(x)=g(x)=\sin(x)+c\tag{3}\\ [\text{c is a constant}]$$
Is line $(3)$ correct? Are both $(1)$ & $(2)$ antiderivatives/indefinite integrals?