Lionel Messi returned to the starting lineup but couldn't prevent his first MLS season from ending in defeat as Charlotte FC beat Inter Miami 1-0 in front of a crowd of 66,101 at Bank of America Stadium.