Horse chestnut is one.
Coconut palm
It looks like the seed pods of Liquidamber styaciflua the Sweet Gum.
The tree you are referring to is likely a sweetgum tree (Liquidambar styraciflua), which produces spiky round seed pods that are about 1 inch in diameter. These seed pods are commonly called "gumballs" or "spikey balls."
The yellow pods make up 25%, the Green pods make up the other 75%.
A tree with round spiky balls might be a Sweetgum tree. See the Related Link below for a picture of the Sweetgum tree.
75%
Tsgsd
no
25%
seed pods
The tree you're referring to is likely the Catalpa tree. It is known for its large green seed pods that can resemble large beans or baseballs, often measuring around 5-12 inches in length. These pods can persist on the tree during the winter months.
constricted :)