A green card is permanent residency, not a visa process.
It’s both. You need the visa to enter the country and get the green card.