Start with where the photo will live
The right outfit depends entirely on context. A corporate LinkedIn photo, a startup team page, and a creative portfolio call for different clothes.
Before anything else, picture where this headshot will be used and who will see it. Dress for the job you want to be hired for, not necessarily the one you have today. Everything below assumes you have answered that question first.