Say we have these two points on a xy plane. (2, 3) and (4, 5). The slope would be 1. To get the equation of the line we can use one of these two formulas.
Substitution y and x values in the formula y = mx + c
3 = 2(1) + C
C = 1
y = 1(x) + 1
Using a different formula y - y1 = m(x - x1)
y - 3 = 1(x - 2)
y = 1(x) + 1
Both of them produce the same results. Is there a scenario where one should be use the other?
They are essentially the same.
The second equation is $y - y_1 = m(x-x_1)$. Rearranging the terms, we can get $y = mx + (y_1 -mx_1) = mx + C$ where $C = (y_1 -mx_1)$, which then we obtain the first equation.