If I were to buy this motherboard, would I be able to swap all the components just fine? like would there be any compatibility issues? Or am I better off keeping my motherboard and just putting a i5 6600k or something in it? My specs are belowB365 Chipset would be a good choice for that CPU. You need a Socket 1151 300-series chipset.
The B365 would not need a BIOS update to use that CPU, but a B360 may need a BIOS update with a different CPU before a Core i5-9400F would work.
https://www.newegg.com/p/N82E16813145169?Description=b365&cm_re=b365-_-13-145-169-_-Product
https://www.gigabyte.com/us/Motherboard/B365M-DS3H-rev-10/support#support-cpu