The short answer
Do not assume everyone photographed at a birthday party agreed to become part of a later personalized gift. The picture may include children, a private family argument or a guest whose presence should not be broadcast. Identify who is recognizable in the proposed crop and consider what the recipient would want visitors to see. Ask the relevant people about reproduction where appropriate. If permissions are incomplete, look for a genuine alternative from the same celebration, such as a detail of the cake, decorations or a smaller consenting group.
What to consider
Do not replace an unconsenting guest with a generated stranger while presenting the result as documentary evidence of the party. A careful crop can sometimes remove an incidental bystander but may also cut away the relationship that made the moment important. Keep the original and a record of permissions separately. The event photographer may also control commercial reproduction rights. The best birthday gift captures the recipient's genuine joy without exposing others who never agreed to a public-facing wall object or promotional photo.