Other ROMs, such as this constant ROM, are not exactly a grid but are slightly optimized: the transistors are somewhat distorted and the grid is squished a bit to take advantage of empty space.
It's not clear if these potential transistors should be counted since there might not be room to fill in all of them. Also, some transistors act as diodes and many act as pull-up resistors.
So does the 8086 have 19,618 transistors or 29,277? It all depends on what you count.
For more, see my blog post: https://www.righto.com/2023/01/counting-transistors-in-8086-processor.html