The famous story is that a designer in Japan ordered a pizza, took a slice out, and saw a shape worth building a game around. It is a great anecdote and it is widely repeated, but it should be treated as a tidy origin myth rather than a documented fact.
What is better established is that Toru Iwatani wanted to make something that would appeal beyond the shooting galleries that dominated arcades at the time — a game that women and couples might enjoy. Eating was the theme he chose because it is universally understood, and the Japanese onomatopoeia "paku-paku", the sound of a mouth chomping, fed directly into the character's design and name.
So the pizza may or may not have been on the table. The design goal — a maze game about eating, made for everyone — is the part that reliably explains why Pac-Man looks the way it does.