It’s a plus point that the primer and paint color are identical, as both mix well and hence there are no color layers or uneven paint issues. But it would help if you also kept in mind that sometimes the primer and paint are unavailable in the same color. In this case, try to use the primer with a shade lighter than the color of the stain to avoid uneven color issues.