If it's a solid color finish, you shouldn't have a lot of trouble making nice patches. If it's a metalflake finish, or some other effect, that does get difficult, to the point that
nobody expects such a repair to be invisible.
Most modern automotive paints are clear coated. So the best way to do the repair is to call a professional.
But if you're going to do it yourself, you're going to be
well ahead of the game if you happen to own a good airbrush and can get SMALL quantities of exact match paint and some matching clear.
Apply the color just to hide the primer coat. No more than that. Let it dry or cure, and then apply clear coat to fill, in as many coats as required, giving adequate
dry/curing time between coats. When you have enough build thickness, wet sand out the repair with a firm foam block, starting at 600 grit and working your way up to 2000
grit or finer if you can get it. Then hand compound the repair with final finishing compound and enjoy the shine. Problem is, it may now be the shiniest spot on the car,
so you may feel motivated to keep compounding the rest of the car to match it.
CJ