Struggling to successfully broadcast a p2pkh transaction
Nevermind.

I combined the two answers from these posts and managed to get something working:

Redeeming a raw transaction step by step example required

https://bitcoin.stackexchange.com/a/41226/89247

Yes. You can use compressed public keys with p2pkh. There are no restrictions.