In the past I would always do with swing arm left in the bike but last few times found easiest to take swing arm out .
Just unscrew the rear brake hose clamps
If the swing arm dog bone bearing is seized in it gives you best access to get out and replace.
Sockets, threaded rod, vice etc or pullers used to push old out and new in.
Remember which direction the bolts come out of the linkages as some will only go back in from same side due to the stand.
One will wiggle past the chain slider despite looking like it wont.
The main swing arm bearing I have never seen wear on the 8? monts I have had (315/4RT) just grease and pit back in but if you have new you could swap but you may find the genuine Honda ones better than aftermarket replacement so save for a rainy day.
best of luck