Choose portable if installation friction is the real blocker
A theoretically better window unit is still the wrong answer if your lease, sash window, HOA, or room layout makes the install painful enough that you will keep postponing the purchase.
Choose window if the room is hot every day and the setup works
Once the install is acceptable, a window AC usually gives you better everyday cooling efficiency and fewer of the airflow penalties that make portable models work harder.
Size first, then compare categories
Many bad AC purchases start with buying the easiest category before checking room size, sun exposure, and whether the target room is closed off or open plan.